Exception: Cel::NoSuchKeyError

Inherits:
EvaluateError show all
Defined in:
lib/cel/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(var, attrib) ⇒ NoSuchKeyError

Returns a new instance of NoSuchKeyError.



29
30
31
32
# File 'lib/cel/errors.rb', line 29

def initialize(var, attrib)
  super("No such key: #{attrib} in #{var}")
  @code = :no_such_key
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



27
28
29
# File 'lib/cel/errors.rb', line 27

def code
  @code
end