Exception: OnlinePayments::SDK::ValidationException

Inherits:
ApiException
  • Object
show all
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

Methods inherited from ApiException

#to_s

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,
               message = 'the Online Payments platform returned an incorrect request error response')
  super(status_code, response_body, error_id, errors, message)
end