Exception: SettingsManager::Errors::KeyInvalidError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- SettingsManager::Errors::KeyInvalidError
- Defined in:
- lib/settings-manager/errors.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key = nil) ⇒ KeyInvalidError
constructor
A new instance of KeyInvalidError.
- #message ⇒ Object
Constructor Details
#initialize(key = nil) ⇒ KeyInvalidError
Returns a new instance of KeyInvalidError.
41 42 43 |
# File 'lib/settings-manager/errors.rb', line 41 def initialize(key = nil) @key = key || "" end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
39 40 41 |
# File 'lib/settings-manager/errors.rb', line 39 def key @key end |
Instance Method Details
#message ⇒ Object
45 46 47 |
# File 'lib/settings-manager/errors.rb', line 45 def "unallowed key `#{@key}`" end |