Exception: OnlinePayments::SDK::Communication::CommunicationException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/onlinepayments/sdk/communication/communication_exception.rb

Overview

This exception is used when an error occurs during network communication with the Online Payments platform. A common cause is a timeout while connecting or when receiving or sending data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ CommunicationException

Returns a new instance of CommunicationException.



10
11
12
13
# File 'lib/onlinepayments/sdk/communication/communication_exception.rb', line 10

def initialize(cause)
  super()
  @cause = cause
end

Instance Attribute Details

#causeException

The error that is the cause of this error.

Returns:

  • (Exception)

    the current value of cause



8
9
10
# File 'lib/onlinepayments/sdk/communication/communication_exception.rb', line 8

def cause
  @cause
end