Exception: Apertur::AuthenticationError

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

Overview

Raised when the API returns a 401 Unauthorized response.

Instance Attribute Summary

Attributes inherited from Error

#code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Authentication failed") ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



23
24
25
# File 'lib/apertur/errors.rb', line 23

def initialize(message = "Authentication failed")
  super(message, status_code: 401, code: "AUTHENTICATION_FAILED")
end