Exception: Aws::Templates::Exception::ParameterSpecificationIsInvalid
- Inherits:
-
ParametrizedDSLError
- Object
- StandardError
- ParametrizedDSLError
- Aws::Templates::Exception::ParameterSpecificationIsInvalid
- 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
-
#options ⇒ Object
readonly
Options unknown to Parametrized.
-
#parameter ⇒ Object
readonly
Parameter object faulty options were specified for.
Instance Method Summary collapse
-
#initialize(target_parameter, opts) ⇒ ParameterSpecificationIsInvalid
constructor
A new instance of ParameterSpecificationIsInvalid.
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
#options ⇒ Object (readonly)
Options unknown to Parametrized
15 16 17 |
# File 'lib/aws/templates/exception/parameter_specification_is_invalid.rb', line 15 def @options end |
#parameter ⇒ Object (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 |