Enum ExpressionErrorClass Copy item path Source #[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.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Evaluation failed at runtime (engine error not covered by a finer class).
Arithmetic failure (overflow, division by zero, NaN rejection, …).
Value type does not match the expected type.
Referenced function is not registered with the language engine.
A configured evaluation limit was exceeded.
Evaluation exceeded its time budget.
The result could not be converted to the declared destination type.
The expression source could not be parsed.
Stable lowercase kebab-case name used in diagnostic messages.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Attaches the provided
Context to this type, returning a
WithContext
wrapper.
Read more Attaches the current
Context to this type, returning a
WithContext
wrapper.
Read more Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.