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.



15
16
17
18
# File 'lib/cel/errors.rb', line 15

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.



13
14
15
# File 'lib/cel/errors.rb', line 13

def code
  @code
end