Exception: RediPress::ConfigurationFailed
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RediPress::ConfigurationFailed
- Defined in:
- lib/redipress/errors.rb
Overview
A RuntimeError subclass for when a configuration fails.
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(configuration, error) ⇒ ConfigurationFailed
constructor
A new instance of ConfigurationFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(configuration, error) ⇒ ConfigurationFailed
Returns a new instance of ConfigurationFailed.
41 42 43 44 |
# File 'lib/redipress/errors.rb', line 41 def initialize(configuration, error) @configuration = configuration @error = error end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
39 40 41 |
# File 'lib/redipress/errors.rb', line 39 def configuration @configuration end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
39 40 41 |
# File 'lib/redipress/errors.rb', line 39 def error @error end |
Instance Method Details
#to_s ⇒ Object
46 47 48 |
# File 'lib/redipress/errors.rb', line 46 def to_s "The configuration '#{@configuration.name}' failed: #{@error}" end |