Exception: OnlinePayments::SDK::PlatformException

Inherits:
ApiException
  • Object
show all
Defined in:
lib/onlinepayments/sdk/platform_exception.rb

Overview

Represents an error response from the payment platform when something went wrong at the payment platform or further downstream.

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 payment platform returned an error response') ⇒ PlatformException

Create a new PlatformException.



13
14
15
16
# File 'lib/onlinepayments/sdk/platform_exception.rb', line 13

def initialize(status_code, response_body, error_id, errors,
               message='the payment platform returned an error response')
  super(status_code, response_body, error_id, errors, message)
end