Exception: LedgerSync::Error::SyncError

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

Direct Known Subclasses

NotPerformedError

Defined Under Namespace

Classes: NotPerformedError

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message:, sync:) ⇒ SyncError

Returns a new instance of SyncError.



8
9
10
11
# File 'lib/ledger_sync/error/sync_errors.rb', line 8

def initialize(message:, sync:)
  @sync = sync
  super(message: message)
end

Instance Attribute Details

#syncObject (readonly)

Returns the value of attribute sync.



6
7
8
# File 'lib/ledger_sync/error/sync_errors.rb', line 6

def sync
  @sync
end