Exception: HookSniff::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/hooksniff/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_code, #status_code

Instance Method Summary collapse

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(message = "Unauthorized: invalid or missing API key")
  super(message, status_code: 401, error_code: "UNAUTHORIZED")
end