Exception: RedisLocks::SemaphoreUnavailable

Inherits:
ResourceUnavailable show all
Defined in:
lib/redis_locks/semaphore.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, resources) ⇒ SemaphoreUnavailable

Returns a new instance of SemaphoreUnavailable.



30
31
32
# File 'lib/redis_locks/semaphore.rb', line 30

def initialize(key, resources)
  super("Key [#{key}] has 0/#{resources} resources available!")
end