Exception: PayTrace::Exceptions::ErrorResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/paytrace/exceptions.rb

Overview

Raised by default when an error response is returned from the server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ErrorResponse

Returns a new instance of ErrorResponse.



16
17
18
# File 'lib/paytrace/exceptions.rb', line 16

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/paytrace/exceptions.rb', line 14

def response
  @response
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/paytrace/exceptions.rb', line 20

def to_s
  @response.get_response()
end