Exception: Aws::Templates::ParameterSpecificationIsInvalid

Inherits:
ParametrizedDSLError show all
Defined in:
lib/aws/templates/exceptions.rb

Overview

Invalid parameter specification hash

If unknown option is passed in a parameter description block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_parameter, opts) ⇒ ParameterSpecificationIsInvalid

Returns a new instance of ParameterSpecificationIsInvalid.



40
41
42
43
44
45
46
47
48
49
# File 'lib/aws/templates/exceptions.rb', line 40

def initialize(target_parameter, opts)
  @parameter = target_parameter
  @options = opts

  super(
    'Unsupported options are in specification for ' \
    "parameter #{target_parameter.name} in class " \
    "#{target_parameter.klass} : #{opts}"
  )
end

Instance Attribute Details

#optionsObject (readonly)

Options unknown to Parametrized



38
39
40
# File 'lib/aws/templates/exceptions.rb', line 38

def options
  @options
end

#parameterObject (readonly)

Parameter object faulty options were specified for



35
36
37
# File 'lib/aws/templates/exceptions.rb', line 35

def parameter
  @parameter
end