Exception: ParameterExceptions::InvalidValue
- Defined in:
- lib/ec2/amitools/parameter_exceptions.rb
Instance Method Summary collapse
-
#initialize(name, value, msg = nil) ⇒ InvalidValue
constructor
A new instance of InvalidValue.
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) = "#{name} has invalid value '#{value.to_s}'" += ": #{msg}" unless msg.nil? super() end |