Exception: AgentsID::AuthenticationError

Inherits:
AgentsIDError
  • Object
show all
Defined in:
lib/agentsid/errors.rb

Instance Attribute Summary

Attributes inherited from AgentsIDError

#code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid or missing API key") ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



15
16
17
# File 'lib/agentsid/errors.rb', line 15

def initialize(message = "Invalid or missing API key")
  super(message, code: "AUTH_ERROR", status_code: 401)
end