Exception: SettingsManager::Errors::KeyInvalidError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/settings-manager/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (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

#messageObject



45
46
47
# File 'lib/settings-manager/errors.rb', line 45

def message
  "unallowed key `#{@key}`"
end