Exception: DoubleEntry::Locking::LockNotHeld

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/double_entry/locking.rb

Overview

Raised when attempting a transfer on an account that's not locked.

Instance Method Summary collapse

Constructor Details

#initialize(account) ⇒ LockNotHeld

Returns a new instance of LockNotHeld.



178
179
180
# File 'lib/double_entry/locking.rb', line 178

def initialize()
  super "No lock held for account: #{.identifier}, scope #{.scope}"
end