Exception: LedgerSync::Error::LedgerError::LedgerValidationError

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

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error::LedgerError

#client, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message:, client:, attribute:, validation:) ⇒ LedgerValidationError

Returns a new instance of LedgerValidationError.



30
31
32
33
34
35
36
37
# File 'lib/ledger_sync/error/ledger_errors.rb', line 30

def initialize(message:, client:, attribute:, validation:)
  @attribute = attribute
  @validation = validation
  super(
    message: message,
    client: client,
  )
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



28
29
30
# File 'lib/ledger_sync/error/ledger_errors.rb', line 28

def attribute
  @attribute
end

#validationObject (readonly)

Returns the value of attribute validation.



28
29
30
# File 'lib/ledger_sync/error/ledger_errors.rb', line 28

def validation
  @validation
end