Exception: Deckle::AuthenticationError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #message, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AuthenticationError.



16
17
18
# File 'lib/deckle/errors.rb', line 16

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