Exception: Configuration::BadAttributeValueError

Inherits:
SyntaxError
  • Object
show all
Defined in:
lib/httpimagestore/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(node, attribute, value, valid) ⇒ BadAttributeValueError

Returns a new instance of BadAttributeValueError.



27
28
29
# File 'lib/httpimagestore/configuration.rb', line 27

def initialize(node, attribute, value, valid)
  super node, "expected '#{attribute}' attribute value to be #{valid.map(&:inspect).join(' or ')}; got: #{value.inspect}"
end