Exception: Aws::Templates::Exception::ParameterValueInvalid

Inherits:
ParameterException show all
Defined in:
lib/aws/templates/exception/parameter_value_invalid.rb

Overview

A value failed constraints

Instance Attribute Summary collapse

Attributes inherited from ParameterException

#parameter

Instance Method Summary collapse

Methods inherited from ParameterException

#message

Constructor Details

#initialize(target_parameter, target_object, target_value) ⇒ ParameterValueInvalid

Returns a new instance of ParameterValueInvalid.



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

def initialize(target_parameter, target_object, target_value)
  @value = target_value
  @object = target_object
  super(
    target_parameter,
    message_text(target_parameter, target_object, target_value)
  )
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



10
11
12
# File 'lib/aws/templates/exception/parameter_value_invalid.rb', line 10

def object
  @object
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/aws/templates/exception/parameter_value_invalid.rb', line 9

def value
  @value
end