Exception: Promiscuous::Error::LockUnavailable
- Defined in:
- lib/promiscuous/error/lock_unavailable.rb
Instance Method Summary collapse
-
#initialize(lock) ⇒ LockUnavailable
constructor
A new instance of LockUnavailable.
- #message ⇒ Object (also: #to_s)
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
#message ⇒ Object Also known as: to_s
6 7 8 9 |
# File 'lib/promiscuous/error/lock_unavailable.rb', line 6 def "The lock is not available on #{@lock}\n" + "If an app instance died, the lock will expire in less than a minute." end |