Exception: Aws::Templates::Exception::ParameterGetterIsNotDefined

Inherits:
ParameterException
  • Object
show all
Defined in:
lib/aws/templates/exception/parameter_getter_is_not_defined.rb

Overview

Getter is not specified

Getter wasn’t specified neither for the individual parameter nor for the mixing instance nor for its class.

Instance Attribute Summary

Attributes inherited from ParameterException

#parameter

Instance Method Summary collapse

Methods inherited from ParameterException

#message

Constructor Details

#initialize(target_parameter) ⇒ ParameterGetterIsNotDefined

Returns a new instance of ParameterGetterIsNotDefined.



12
13
14
15
16
17
18
19
# File 'lib/aws/templates/exception/parameter_getter_is_not_defined.rb', line 12

def initialize(target_parameter)
  super(
    target_parameter,
    "Can't find getter for #{target_parameter.name} (#{target_parameter.description}): " \
      'a getter should be attached either to the parameter or the instance ' \
      'or the instance class'
  )
end