Exception: Aws::Templates::Exception::OptionScalarOnTheWay

Inherits:
OptionError
  • Object
show all
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

Instance Method Summary collapse

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

#pathObject (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

#valueObject (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