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.
31 32 33 34 35 36 37 38 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 31 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.
29 30 31 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 29 def attribute @attribute end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
29 30 31 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 29 def validation @validation end |