Exception: ParameterExceptions::InvalidValue

Inherits:
Error
  • Object
show all
Defined in:
lib/ec2/amitools/parameter_exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, value, msg = nil) ⇒ InvalidValue

Returns a new instance of InvalidValue.



28
29
30
31
32
# File 'lib/ec2/amitools/parameter_exceptions.rb', line 28

def initialize(name, value, msg=nil)
  message = "#{name} has invalid value '#{value.to_s}'"
  message += ": #{msg}" unless msg.nil?
  super(message)
end