Exception: Promiscuous::Error::LostLock

Inherits:
Base
  • Object
show all
Defined in:
lib/promiscuous/error/lost_lock.rb

Instance Method Summary collapse

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

#messageObject Also known as: to_s



6
7
8
9
# File 'lib/promiscuous/error/lost_lock.rb', line 6

def message
  "The following lock was lost during the operation and will be recovered if not already done:\n" +
  "  #{@lock}"
end