Exception: OnlinePayments::SDK::PaymentPlatformException
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- OnlinePayments::SDK::PaymentPlatformException
- Defined in:
- lib/onlinepayments/sdk/payment_platform_exception.rb
Overview
This exception is thrown when a response from the payment platform indicates that an error occurred on the payment platform while processing the request. This corresponds to a HTTP status code of 500 or 502.
Instance Attribute Summary
Attributes inherited from ApiException
#error_id, #errors, #response_body, #status_code
Instance Method Summary collapse
-
#initialize(status_code, response_body, error_id, errors, message = 'the Online Payments platform returned an error response') ⇒ PaymentPlatformException
constructor
Create a new PaymentPlatformException.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, error_id, errors, message = 'the Online Payments platform returned an error response') ⇒ PaymentPlatformException
Create a new PaymentPlatformException
10 11 12 13 |
# File 'lib/onlinepayments/sdk/payment_platform_exception.rb', line 10 def initialize(status_code, response_body, error_id, errors, = 'the Online Payments platform returned an error response') super(status_code, response_body, error_id, errors, ) end |