Exception: Aws::Templates::Exception::OptionScalarOnTheWay
- Inherits:
-
OptionError
- Object
- ArgumentError
- OptionError
- Aws::Templates::Exception::OptionScalarOnTheWay
- Defined in:
- lib/aws/templates/exception/option_scalar_on_the_way.rb
Overview
Scalar is met while traversing Options path
Path is not empty yet but we can’t traverse deeper because the current value is a scalar
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, path) ⇒ OptionScalarOnTheWay
constructor
A new instance of OptionScalarOnTheWay.
Constructor Details
#initialize(value, path) ⇒ OptionScalarOnTheWay
Returns a new instance of OptionScalarOnTheWay.
14 15 16 17 18 19 20 21 22 |
# File 'lib/aws/templates/exception/option_scalar_on_the_way.rb', line 14 def initialize(value, path) @value = value @path = path super( "Value #{value} is not a recursive data structure and we have still #{path} keys " \ 'to look-up' ) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
12 13 14 |
# File 'lib/aws/templates/exception/option_scalar_on_the_way.rb', line 12 def path @path end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/aws/templates/exception/option_scalar_on_the_way.rb', line 11 def value @value end |