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