Exception: Redis::Directory::ReservationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/redis_directory.rb

Overview

If you are unable to reserve a database during a connection attempt, this error is raised.

Instance Method Summary collapse

Constructor Details

#initialize(directory, service_name, connection_name) ⇒ ReservationError

Returns a new instance of ReservationError.



22
23
24
# File 'lib/redis_directory.rb', line 22

def initialize(directory, service_name, connection_name)
  super "Unable to reserve a database for #{service_name}:#{connection_name}!\nCurrent databases for service: #{directory.redis.hgetall("#{service_name}-service")}"
end