Exception: LedgerSync::Error::OperationError::ValidationError
- Inherits:
-
LedgerSync::Error::OperationError
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::OperationError
- LedgerSync::Error::OperationError::ValidationError
- Defined in:
- lib/ledger_sync/error/operation_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::OperationError
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(message:, attribute:, operation:, validation:, response: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message:, attribute:, operation:, validation:, response: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 34 def initialize(message:, attribute:, operation:, validation:, response: nil) @attribute = attribute @validation = validation super( message: , operation: operation, response: response ) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
31 32 33 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 31 def attribute @attribute end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
31 32 33 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 31 def validation @validation end |