Exception: PayPal::SDK::Subscriptions::UnsuccessfulApiCall

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/paypal-sdk/subscriptions/request_base.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.



16
17
18
19
# File 'lib/paypal-sdk/subscriptions/request_base.rb', line 16

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.



14
15
16
# File 'lib/paypal-sdk/subscriptions/request_base.rb', line 14

def api_error
  @api_error
end