Exception: Redis::Directory::UndefinedServiceError

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

Overview

This error is thrown when you request a service that is not defined in the directory’s “services” key.

Instance Method Summary collapse

Constructor Details

#initialize(directory, service_name) ⇒ UndefinedServiceError

Returns a new instance of UndefinedServiceError.



15
16
17
# File 'lib/redis_directory.rb', line 15

def initialize(directory, service_name)
  super "#{service_name} is not an available service! (#{directory.services.keys.sort})"
end