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