Exception: LedgerSync::Error::OperationError
- Inherits:
-
LedgerSync::Error
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::OperationError
- Defined in:
- lib/ledger_sync/error/operation_errors.rb
Direct Known Subclasses
DuplicateLedgerResourceError, LedgerValidationError, NotFoundError, PerformedOperationError, ValidationError
Defined Under Namespace
Classes: DuplicateLedgerResourceError, LedgerValidationError, NotFoundError, PerformedOperationError, ValidationError
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(operation:, message: nil, response: nil) ⇒ OperationError
constructor
A new instance of OperationError.
Constructor Details
#initialize(operation:, message: nil, response: nil) ⇒ OperationError
Returns a new instance of OperationError.
8 9 10 11 12 13 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 8 def initialize(operation:, message: nil, response: nil) ||= 'Operation failed.' @operation = operation @response = response super(message: ) end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
6 7 8 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 6 def operation @operation end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/ledger_sync/error/operation_errors.rb', line 6 def response @response end |