#[non_exhaustive]pub enum ExpressionErrorClass {
Runtime,
Arithmetic,
TypeMismatch,
FunctionNotFound,
Limit,
Timeout,
Conversion,
Parse,
}Expand description
Classification of a language-expression evaluation failure.
Matchable class attached to CamelError::ExpressionFailed so route-level
error handlers can discriminate failure kinds programmatically without
parsing message text. Variants carry no data — diagnostics that need detail
live on the ExpressionFailed variant itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Runtime
Evaluation failed at runtime (engine error not covered by a finer class).
Arithmetic
Arithmetic failure (overflow, division by zero, NaN rejection, …).
TypeMismatch
Value type does not match the expected type.
FunctionNotFound
Referenced function is not registered with the language engine.
Limit
A configured evaluation limit was exceeded.
Timeout
Evaluation exceeded its time budget.
Conversion
The result could not be converted to the declared destination type.
Parse
The expression source could not be parsed.
Implementations§
Trait Implementations§
Source§impl Clone for ExpressionErrorClass
impl Clone for ExpressionErrorClass
Source§fn clone(&self) -> ExpressionErrorClass
fn clone(&self) -> ExpressionErrorClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more