Exception: Redis::Lock::NotLocked
- Defined in:
- lib/redis-lock.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(operation, lock) ⇒ NotLocked
constructor
A new instance of NotLocked.
- #message ⇒ Object
Constructor Details
#initialize(operation, lock) ⇒ NotLocked
Returns a new instance of NotLocked.
253 254 255 256 |
# File 'lib/redis-lock.rb', line 253 def initialize(operation, lock) @operation = operation @lock = lock end |
Instance Method Details
#message ⇒ Object
258 259 260 |
# File 'lib/redis-lock.rb', line 258 def "Trying to #{@operation} a lock has not been aquired: #{@lock}" end |