Exception: RediPress::ConfigurationNotAvailable

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/redipress/errors.rb

Overview

A RuntimeError subclass for when a configuration is not available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slug) ⇒ ConfigurationNotAvailable

Returns a new instance of ConfigurationNotAvailable.



11
12
13
# File 'lib/redipress/errors.rb', line 11

def initialize(slug)
  @slug = slug
end

Instance Attribute Details

#slugObject (readonly)

Returns the value of attribute slug.



9
10
11
# File 'lib/redipress/errors.rb', line 9

def slug
  @slug
end

Instance Method Details

#to_sObject



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

def to_s
  "The configuration '#{@slug}' is not available."
end