Exception: PayPal::SDK::Subscriptions::UnsuccessfulApiCall
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- PayPal::SDK::Subscriptions::UnsuccessfulApiCall
- Defined in:
- lib/paypal-sdk/subscriptions/request_base.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.
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_error ⇒ Object (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 |