Exception: LedgerSync::Error::LedgerError::LedgerValidationError
- Inherits:
-
LedgerSync::Error::LedgerError
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::LedgerError
- LedgerSync::Error::LedgerError::LedgerValidationError
- Defined in:
- lib/ledger_sync/error/ledger_errors.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
Attributes inherited from LedgerSync::Error::LedgerError
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(message:, client:, attribute:, validation:) ⇒ LedgerValidationError
constructor
A new instance of LedgerValidationError.
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: , client: client, ) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
28 29 30 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 28 def attribute @attribute end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
28 29 30 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 28 def validation @validation end |