Exception: HookBridge::AuthenticationError
- Defined in:
- lib/hookbridge/errors.rb
Overview
Raised when authentication fails (401)
Instance Attribute Summary
Attributes inherited from Error
#code, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message = "Invalid or missing API key", **kwargs) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(message = "Invalid or missing API key", **kwargs) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
18 19 20 |
# File 'lib/hookbridge/errors.rb', line 18 def initialize( = "Invalid or missing API key", **kwargs) super(, code: "AUTHENTICATION_ERROR", status_code: 401, **kwargs) end |