Exception: Affirm::RequestError

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

Direct Known Subclasses

AuthenticationError, NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ RequestError

Returns a new instance of RequestError.



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

def initialize(http_response)
  @http_response = http_response
  super(message_from(http_response))
end

Instance Attribute Details

#http_responseObject (readonly)

Returns the value of attribute http_response.



6
7
8
# File 'lib/affirm/error.rb', line 6

def http_response
  @http_response
end