Exception: Aws::Templates::ParameterAlreadyExist

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

Instance Method Summary collapse

Constructor Details

#initialize(target_parameter) ⇒ ParameterAlreadyExist

Returns a new instance of ParameterAlreadyExist.



20
21
22
23
24
25
26
# File 'lib/aws/templates/exceptions.rb', line 20

def initialize(target_parameter)
  @parameter = target_parameter
  super(
    "Parameter #{target_parameter.name} already in " \
    "#{target_parameter.klass}."
  )
end

Instance Attribute Details

#parameterObject (readonly)

Parameter object of the conflicting parameter



18
19
20
# File 'lib/aws/templates/exceptions.rb', line 18

def parameter
  @parameter
end