Exception: LedgerSync::Error::AdaptorError::AdaptorValidationError
- Inherits:
-
LedgerSync::Error::AdaptorError
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::AdaptorError
- LedgerSync::Error::AdaptorError::AdaptorValidationError
- Defined in:
- lib/ledger_sync/error/adaptor_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::AdaptorError
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(message:, adaptor:, attribute:, validation:) ⇒ AdaptorValidationError
constructor
A new instance of AdaptorValidationError.
Constructor Details
#initialize(message:, adaptor:, attribute:, validation:) ⇒ AdaptorValidationError
Returns a new instance of AdaptorValidationError.
27 28 29 30 31 32 33 34 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 27 def initialize(message:, adaptor:, attribute:, validation:) @attribute = attribute @validation = validation super( message: , adaptor: adaptor, ) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
25 26 27 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 25 def attribute @attribute end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
25 26 27 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 25 def validation @validation end |