Exception: Cel::InvalidArgumentError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



20
21
22
23
# File 'lib/cel/errors.rb', line 20

def initialize(key)
  super("invalid argument #{key}")
  @code = :invalid_argument
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



18
19
20
# File 'lib/cel/errors.rb', line 18

def code
  @code
end