Class: LedgerSync::Domains::UnspecifiedError

Inherits:
Error::OperationError
  • Object
show all
Defined in:
lib/ledger_sync/domains.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation:, error:) ⇒ UnspecifiedError

Returns a new instance of UnspecifiedError.



25
26
27
28
29
# File 'lib/ledger_sync/domains.rb', line 25

def initialize(operation:, error:)
  @error = error
  message = 'Operation failed with unraisable error. Please check your error.'
  super(message: message, operation: operation)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



23
24
25
# File 'lib/ledger_sync/domains.rb', line 23

def error
  @error
end

Instance Method Details

#inspectObject



31
32
33
# File 'lib/ledger_sync/domains.rb', line 31

def inspect
  "#<#{self.class}: #{message} (errors: #{error.inspect})>"
end