Exception: Hooksmith::PersistenceError
- Defined in:
- lib/hooksmith/errors.rb
Overview
Raised when event persistence fails.
This error is raised when the event store is configured but fails to persist the webhook event.
Instance Attribute Summary collapse
-
#original_error ⇒ Exception?
readonly
The original exception.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = 'Failed to persist webhook event', provider: nil, event: nil, original_error: nil) ⇒ PersistenceError
constructor
Initializes a new PersistenceError.
Constructor Details
#initialize(message = 'Failed to persist webhook event', provider: nil, event: nil, original_error: nil) ⇒ PersistenceError
Initializes a new PersistenceError.
225 226 227 228 |
# File 'lib/hooksmith/errors.rb', line 225 def initialize( = 'Failed to persist webhook event', provider: nil, event: nil, original_error: nil) @original_error = original_error super(, provider:, event:) end |
Instance Attribute Details
#original_error ⇒ Exception? (readonly)
Returns the original exception.
217 218 219 |
# File 'lib/hooksmith/errors.rb', line 217 def original_error @original_error end |