Exception: Aws::Templates::Exception::ParameterSpecificationIsInvalid

Inherits:
ParametrizedDSLError
  • Object
show all
Defined in:
lib/aws/templates/exception/parameter_specification_is_invalid.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.



17
18
19
20
21
22
23
24
25
26
# File 'lib/aws/templates/exception/parameter_specification_is_invalid.rb', line 17

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



15
16
17
# File 'lib/aws/templates/exception/parameter_specification_is_invalid.rb', line 15

def options
  @options
end

#parameterObject (readonly)

Parameter object faulty options were specified for



12
13
14
# File 'lib/aws/templates/exception/parameter_specification_is_invalid.rb', line 12

def parameter
  @parameter
end