Exception: Aws::Templates::ParameterException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws/templates/exceptions.rb

Overview

Parameter exception

Happens during runtime if an error happens during parameter evaluation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_parameter, custom_message) ⇒ ParameterException

Returns a new instance of ParameterException.



103
104
105
106
# File 'lib/aws/templates/exceptions.rb', line 103

def initialize(target_parameter, custom_message)
  @parameter = target_parameter
  super(custom_message)
end

Instance Attribute Details

#parameterObject (readonly)

Parameter object



97
98
99
# File 'lib/aws/templates/exceptions.rb', line 97

def parameter
  @parameter
end

Instance Method Details

#messageObject



99
100
101
# File 'lib/aws/templates/exceptions.rb', line 99

def message
  cause.nil? ? super : "#{super} : #{cause.message}"
end