Exception: Aws::Templates::Exception::ParameterException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws/templates/exception/parameter_exception.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.



19
20
21
22
# File 'lib/aws/templates/exception/parameter_exception.rb', line 19

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

Instance Attribute Details

#parameterObject (readonly)

Parameter object



13
14
15
# File 'lib/aws/templates/exception/parameter_exception.rb', line 13

def parameter
  @parameter
end

Instance Method Details

#messageObject



15
16
17
# File 'lib/aws/templates/exception/parameter_exception.rb', line 15

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