Exception: HasOffersV3::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/hasoffersv3/error.rb

Direct Known Subclasses

APIError, HTTPError, ParseError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ResponseError

Returns a new instance of ResponseError.



11
12
13
14
# File 'lib/hasoffersv3/error.rb', line 11

def initialize(message, response)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/hasoffersv3/error.rb', line 8

def response
  @response
end