Exception: EcfDgii::EcfError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ecf_dgii/exceptions.rb

Overview

Base error class for ECF SDK errors.

Direct Known Subclasses

PollingMaxRetriesError, PollingTimeoutError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ EcfError

Returns a new instance of EcfError.



7
8
9
10
# File 'lib/ecf_dgii/exceptions.rb', line 7

def initialize(message, response = nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

The full EcfResponse object containing details about the error.



5
6
7
# File 'lib/ecf_dgii/exceptions.rb', line 5

def response
  @response
end