Exception: Promiscuous::Error::LockUnavailable

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

Instance Method Summary collapse

Constructor Details

#initialize(lock) ⇒ LockUnavailable

Returns a new instance of LockUnavailable.



2
3
4
# File 'lib/promiscuous/error/lock_unavailable.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/lock_unavailable.rb', line 6

def message
  "The lock is not available on #{@lock}\n" +
  "If an app instance died, the lock will expire in less than a minute."
end