Exception: LedgerSync::Error::AdaptorError

Inherits:
LedgerSync::Error show all
Defined in:
lib/ledger_sync/error/adaptor_errors.rb

Defined Under Namespace

Classes: AdaptorValidationError, AuthenticationError, AuthorizationError, ConfigurationError, MissingAdaptorError, ThrottleError, UnknownURLFormat

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(adaptor:, message:, response: nil) ⇒ AdaptorError

Returns a new instance of AdaptorError.



9
10
11
12
13
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 9

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

Instance Attribute Details

#adaptorObject (readonly)

Returns the value of attribute adaptor.



6
7
8
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 6

def adaptor
  @adaptor
end

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 7

def response
  @response
end