Exception: Hooksmith::VerificationError
- Defined in:
- lib/hooksmith/errors.rb
Overview
Raised when webhook request verification fails.
This error is raised by verifiers when the incoming request does not pass authentication checks.
Instance Attribute Summary collapse
-
#reason ⇒ String?
readonly
The reason for verification failure.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = 'Webhook verification failed', provider: nil, event: nil, reason: nil) ⇒ VerificationError
constructor
Initializes a new VerificationError.
Constructor Details
#initialize(message = 'Webhook verification failed', provider: nil, event: nil, reason: nil) ⇒ VerificationError
Initializes a new VerificationError.
55 56 57 58 |
# File 'lib/hooksmith/errors.rb', line 55 def initialize( = 'Webhook verification failed', provider: nil, event: nil, reason: nil) @reason = reason super(, provider:, event:) end |
Instance Attribute Details
#reason ⇒ String? (readonly)
Returns the reason for verification failure.
47 48 49 |
# File 'lib/hooksmith/errors.rb', line 47 def reason @reason end |