Exception: Aws::Templates::Exception::ParameterAlreadyExist
- Inherits:
-
ParametrizedDSLError
- Object
- StandardError
- ParametrizedDSLError
- Aws::Templates::Exception::ParameterAlreadyExist
- Defined in:
- lib/aws/templates/exception/parameter_already_exist.rb
Overview
Parameter already exists
If you’re trying to define a parameter in a parametrized artifact and this parameter either already defined for the class or defined in an ancestor.
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Parameter object of the conflicting parameter.
Instance Method Summary collapse
-
#initialize(target_parameter) ⇒ ParameterAlreadyExist
constructor
A new instance of ParameterAlreadyExist.
Constructor Details
#initialize(target_parameter) ⇒ ParameterAlreadyExist
Returns a new instance of ParameterAlreadyExist.
16 17 18 19 20 21 22 |
# File 'lib/aws/templates/exception/parameter_already_exist.rb', line 16 def initialize(target_parameter) @parameter = target_parameter super( "Parameter #{target_parameter.name} already in " \ "#{target_parameter.klass}." ) end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Parameter object of the conflicting parameter
14 15 16 |
# File 'lib/aws/templates/exception/parameter_already_exist.rb', line 14 def parameter @parameter end |