Exception: LedgerSync::Error::LedgerError

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

Defined Under Namespace

Classes: AuthenticationError, AuthorizationError, ConfigurationError, LedgerValidationError, MissingLedgerError, ThrottleError, UnknownURLFormat

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(client:, message:, response: nil) ⇒ LedgerError

Returns a new instance of LedgerError.



8
9
10
11
12
# File 'lib/ledger_sync/error/ledger_errors.rb', line 8

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

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end