Exception: Aws::Templates::Exception::ParameterException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::Templates::Exception::ParameterException
- Defined in:
- lib/aws/templates/exception/parameter_exception.rb
Overview
Parameter exception
Happens during runtime if an error happens during parameter evaluation
Direct Known Subclasses
NestedParameterException, ParameterGetterIsNotDefined, ParameterValueInvalid
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Parameter object.
Instance Method Summary collapse
-
#initialize(target_parameter, custom_message) ⇒ ParameterException
constructor
A new instance of ParameterException.
- #message ⇒ Object
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, ) @parameter = target_parameter super() end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Parameter object
13 14 15 |
# File 'lib/aws/templates/exception/parameter_exception.rb', line 13 def parameter @parameter end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/aws/templates/exception/parameter_exception.rb', line 15 def cause.nil? ? super : "#{super} : #{cause.}" end |