Exception: HookSniff::AuthenticationError
- Defined in:
- lib/hooksniff/errors.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Unauthorized: invalid or missing API key") ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Constructor Details
#initialize(message = "Unauthorized: invalid or missing API key") ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
15 16 17 |
# File 'lib/hooksniff/errors.rb', line 15 def initialize( = "Unauthorized: invalid or missing API key") super(, status_code: 401, error_code: "UNAUTHORIZED") end |