Exception: Aws::Templates::ParameterSpecificationIsInvalid
- Inherits:
-
ParametrizedDSLError
- Object
- StandardError
- ParametrizedDSLError
- Aws::Templates::ParameterSpecificationIsInvalid
- 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
-
#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.
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
#options ⇒ Object (readonly)
Options unknown to Parametrized
38 39 40 |
# File 'lib/aws/templates/exceptions.rb', line 38 def @options end |
#parameter ⇒ Object (readonly)
Parameter object faulty options were specified for
35 36 37 |
# File 'lib/aws/templates/exceptions.rb', line 35 def parameter @parameter end |