Exception: OnlinePayments::SDK::ValidationException
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- OnlinePayments::SDK::ValidationException
- Defined in:
- lib/onlinepayments/sdk/validation_exception.rb
Overview
Raised when the request sent to the Online Payments platform returned a HTTP response with status code 400. This indicates the request received by the Online Payments platform was malformed.
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 incorrect request error response') ⇒ ValidationException
constructor
Create a new ValidationException.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, error_id, errors, message = 'the Online Payments platform returned an incorrect request error response') ⇒ ValidationException
Create a new ValidationException
9 10 11 12 |
# File 'lib/onlinepayments/sdk/validation_exception.rb', line 9 def initialize(status_code, response_body, error_id, errors, = 'the Online Payments platform returned an incorrect request error response') super(status_code, response_body, error_id, errors, ) end |