Exception: CloudPayments::Client::GatewayError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloud_payments/client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, body) ⇒ GatewayError

Returns a new instance of GatewayError.



9
10
11
12
# File 'lib/cloud_payments/client/errors.rb', line 9

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



7
8
9
# File 'lib/cloud_payments/client/errors.rb', line 7

def body
  @body
end