Exception: RediPress::ConfigurationNotAvailable
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RediPress::ConfigurationNotAvailable
- Defined in:
- lib/redipress/errors.rb
Overview
A RuntimeError subclass for when a configuration is not available.
Instance Attribute Summary collapse
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(slug) ⇒ ConfigurationNotAvailable
constructor
A new instance of ConfigurationNotAvailable.
- #to_s ⇒ Object
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
#slug ⇒ Object (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_s ⇒ Object
15 16 17 |
# File 'lib/redipress/errors.rb', line 15 def to_s "The configuration '#{@slug}' is not available." end |