Exception: Hooksmith::ProcessorError
- Defined in:
- lib/hooksmith/errors.rb
Overview
Raised when a processor encounters an error during processing.
This error wraps the original exception and provides additional context about which processor failed and for which event.
Instance Attribute Summary collapse
-
#original_error ⇒ Exception?
readonly
The original exception.
-
#processor_class ⇒ String
readonly
The processor class name.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, provider:, event:, processor_class:, original_error: nil) ⇒ ProcessorError
constructor
Initializes a new ProcessorError.
Constructor Details
#initialize(message, provider:, event:, processor_class:, original_error: nil) ⇒ ProcessorError
Initializes a new ProcessorError.
145 146 147 148 149 |
# File 'lib/hooksmith/errors.rb', line 145 def initialize(, provider:, event:, processor_class:, original_error: nil) @processor_class = processor_class.to_s @original_error = original_error super(, provider:, event:) end |
Instance Attribute Details
#original_error ⇒ Exception? (readonly)
Returns the original exception.
136 137 138 |
# File 'lib/hooksmith/errors.rb', line 136 def original_error @original_error end |
#processor_class ⇒ String (readonly)
Returns the processor class name.
134 135 136 |
# File 'lib/hooksmith/errors.rb', line 134 def processor_class @processor_class end |