Exception: Apertur::AuthenticationError
- Defined in:
- lib/apertur/errors.rb
Overview
Raised when the API returns a 401 Unauthorized response.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Authentication failed") ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
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( = "Authentication failed") super(, status_code: 401, code: "AUTHENTICATION_FAILED") end |