Class: LedgerSync::Domains::UnspecifiedError
- Inherits:
-
Error::OperationError
- Object
- Error::OperationError
- LedgerSync::Domains::UnspecifiedError
- Defined in:
- lib/ledger_sync/domains.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(operation:, error:) ⇒ UnspecifiedError
constructor
A new instance of UnspecifiedError.
- #inspect ⇒ Object
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 = 'Operation failed with unraisable error. Please check your error.' super(message: , operation: operation) end |
Instance Attribute Details
#error ⇒ Object (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
#inspect ⇒ Object
31 32 33 |
# File 'lib/ledger_sync/domains.rb', line 31 def inspect "#<#{self.class}: #{} (errors: #{error.inspect})>" end |