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.
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 44 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.
41 42 43 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 41 def attribute @attribute end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
41 42 43 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 41 def validation @validation end |