Exception: Cel::NoSuchFieldError
- Inherits:
-
EvaluateError
- Object
- StandardError
- Error
- EvaluateError
- Cel::NoSuchFieldError
- Defined in:
- lib/cel/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(var, attrib) ⇒ NoSuchFieldError
constructor
A new instance of NoSuchFieldError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/cel/errors.rb', line 13 def code @code end |