Exception: LedgerSync::Error::OperationError::PerformedOperationError

Inherits:
LedgerSync::Error::OperationError show all
Defined in:
lib/ledger_sync/error/operation_errors.rb

Instance Attribute Summary

Attributes inherited from LedgerSync::Error::OperationError

#operation, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(operation:, message: nil, response: nil) ⇒ PerformedOperationError

Returns a new instance of PerformedOperationError.



19
20
21
22
23
24
25
26
27
# File 'lib/ledger_sync/error/operation_errors.rb', line 19

def initialize(operation:, message: nil, response: nil)
  message ||= 'Operation has already been performed. Please check the result.'

  super(
    message: message,
    operation: operation,
    response: response
  )
end