Exception: Cel::NoSuchFieldError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(var, attrib) ⇒ NoSuchFieldError

Returns a new instance of NoSuchFieldError.



38
39
40
41
# File 'lib/cel/errors.rb', line 38

def initialize(var, attrib)
  super("No such field: #{var}.#{attrib}")
  @code = :no_such_field
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



36
37
38
# File 'lib/cel/errors.rb', line 36

def code
  @code
end