Exception: HasOffersV3::HTTPError
- Inherits:
-
ResponseError
- Object
- StandardError
- Error
- ResponseError
- HasOffersV3::HTTPError
- Defined in:
- lib/hasoffersv3/error.rb
Overview
Any HTTP error that has occurred during the call to the API endpoint (gateway timeout, internal server error etc.)
Instance Attribute Summary
Attributes inherited from ResponseError
Class Method Summary collapse
Methods inherited from ResponseError
Constructor Details
This class inherits a constructor from HasOffersV3::ResponseError
Class Method Details
.from_response(response) ⇒ Object
24 25 26 |
# File 'lib/hasoffersv3/error.rb', line 24 def self.from_response(response) new("HTTP error: #{response.}", response) end |