Exception: Aws::Templates::OptionScalarOnTheWay

Inherits:
OptionError show all
Defined in:
lib/aws/templates/exceptions.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.



210
211
212
213
214
215
216
217
218
# File 'lib/aws/templates/exceptions.rb', line 210

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.



208
209
210
# File 'lib/aws/templates/exceptions.rb', line 208

def path
  @path
end

#valueObject (readonly)

Returns the value of attribute value.



207
208
209
# File 'lib/aws/templates/exceptions.rb', line 207

def value
  @value
end