Exception: PayPal::SDK::Core::Exceptions::UnsuccessfulApiCall

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/paypal-sdk/core/exceptions.rb

Overview

API error: returned as 200 + “error” key in response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_error) ⇒ UnsuccessfulApiCall

Returns a new instance of UnsuccessfulApiCall.


106
107
108
109
# File 'lib/paypal-sdk/core/exceptions.rb', line 106

def initialize(api_error)
  super(api_error['message'])
  @api_error = api_error
end

Instance Attribute Details

#api_errorObject (readonly)

Returns the value of attribute api_error


104
105
106
# File 'lib/paypal-sdk/core/exceptions.rb', line 104

def api_error
  @api_error
end