Exception: HasOffersV3::HTTPError

Inherits:
ResponseError show all
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

#response

Class Method Summary collapse

Methods inherited from ResponseError

#initialize

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.http_message}", response)
end