Exception: DoubleEntry::Locking::LockNotHeld
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DoubleEntry::Locking::LockNotHeld
- Defined in:
- lib/double_entry/locking.rb
Overview
Raised when attempting a transfer on an account that's not locked.
Instance Method Summary collapse
-
#initialize(account) ⇒ LockNotHeld
constructor
A new instance of LockNotHeld.
Constructor Details
#initialize(account) ⇒ LockNotHeld
Returns a new instance of LockNotHeld.
178 179 180 |
# File 'lib/double_entry/locking.rb', line 178 def initialize(account) super "No lock held for account: #{account.identifier}, scope #{account.scope}" end |