Class: RelicLink::Errors::UnauthorizedError
- Inherits:
-
HttpRequestError
- Object
- Faraday::Error
- ServerError
- HttpRequestError
- RelicLink::Errors::UnauthorizedError
- Defined in:
- lib/relic_link/errors/server_error.rb
Overview
Raised when a 401 is returned in an API response
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
-
#initialize(response) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Constructor Details
#initialize(response) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
34 35 36 |
# File 'lib/relic_link/errors/server_error.rb', line 34 def initialize(response) super('unauthorized', response) end |