Exception: Buckaruby::InvalidResponseException

Inherits:
BuckarooException show all
Defined in:
lib/buckaruby/exception.rb

Overview

Exception raised when the response from Buckaroo was invalid.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ InvalidResponseException

Returns a new instance of InvalidResponseException.



52
53
54
55
56
57
# File 'lib/buckaruby/exception.rb', line 52

def initialize(response)
  @response = response

  message = "Invalid response received from Buckaroo: #{response.message} (#{response.code})"
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



50
51
52
# File 'lib/buckaruby/exception.rb', line 50

def response
  @response
end