Exception: PayPal::SDK::Core::Exceptions::UnsuccessfulApiCall
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- PayPal::SDK::Core::Exceptions::UnsuccessfulApiCall
- Defined in:
- lib/paypal-sdk/core/exceptions.rb
Overview
API error: returned as 200 + “error” key in response.
Instance Attribute Summary collapse
-
#api_error ⇒ Object
readonly
Returns the value of attribute api_error.
Instance Method Summary collapse
-
#initialize(api_error) ⇒ UnsuccessfulApiCall
constructor
A new instance of UnsuccessfulApiCall.
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_error ⇒ Object (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 |