Exception: Redis::Directory::UndefinedServiceError
- Inherits:
-
StandardError
- Object
- StandardError
- Redis::Directory::UndefinedServiceError
- 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
-
#initialize(directory, service_name) ⇒ UndefinedServiceError
constructor
A new instance of UndefinedServiceError.
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 |