Exception: HookBridge::AuthenticationError

Inherits:
Error
  • Object
show all
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

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(message = "Invalid or missing API key", **kwargs)
  super(message, code: "AUTHENTICATION_ERROR", status_code: 401, **kwargs)
end