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