Exception: Promiscuous::Error::LostLock
- Defined in:
- lib/promiscuous/error/lost_lock.rb
Instance Method Summary collapse
-
#initialize(lock) ⇒ LostLock
constructor
A new instance of LostLock.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(lock) ⇒ LostLock
Returns a new instance of LostLock.
2 3 4 |
# File 'lib/promiscuous/error/lost_lock.rb', line 2 def initialize(lock) @lock = lock end |
Instance Method Details
#message ⇒ Object Also known as: to_s
6 7 8 9 |
# File 'lib/promiscuous/error/lost_lock.rb', line 6 def "The following lock was lost during the operation and will be recovered if not already done:\n" + " #{@lock}" end |