Exception: BetterService::Errors::Runtime::ExecutionError
- Inherits:
-
RuntimeError
- Object
- StandardError
- BetterServiceError
- RuntimeError
- BetterService::Errors::Runtime::ExecutionError
- Defined in:
- lib/better_service/errors/runtime/execution_error.rb
Overview
Raised when unexpected error occurs during service execution
This error wraps unexpected StandardError exceptions that occur during the service’s search, process, transform, or respond phases.
Instance Attribute Summary
Attributes inherited from BetterServiceError
#code, #context, #original_error, #timestamp
Instance Method Summary collapse
-
#initialize(message = "Execution failed", code: :execution_error, context: {}, original_error: nil) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Methods inherited from BetterServiceError
#backtrace, #detailed_message, #inspect, #to_h
Constructor Details
#initialize(message = "Execution failed", code: :execution_error, context: {}, original_error: nil) ⇒ ExecutionError
24 25 26 |
# File 'lib/better_service/errors/runtime/execution_error.rb', line 24 def initialize( = "Execution failed", code: :execution_error, context: {}, original_error: nil) super(, code: code, context: context, original_error: original_error) end |