#[non_exhaustive]pub enum EvalError {
Expression(String),
Catalog(String),
Data(DataError),
Execution(String),
}Expand description
A failure while evaluating, in the specification’s error categories.
Variants (Non-exhaustive)§
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.
Expression(String)
A function failed, was refused, or a template did not parse
(EXPRESSION_ERROR).
Catalog(String)
A call’s catalog could not be resolved.
Data(DataError)
A data binding’s path is not allowed.
Execution(String)
A local function ran and failed (EXECUTION_ERROR).
Implementations§
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ExpressionError> for EvalError
impl From<ExpressionError> for EvalError
Source§fn from(error: ExpressionError) -> Self
fn from(error: ExpressionError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for EvalError
Auto Trait Implementations§
impl Forget for EvalError
impl Freeze for EvalError
impl Move for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more