#[non_exhaustive]pub enum EvalError {
PathNotFound(String),
InvalidPath(String),
NonBoolCond(Value),
TypeError {
op: String,
msg: String,
},
ArithError {
op: String,
msg: String,
},
DispatcherError {
ref_: String,
msg: String,
},
ExternError {
ref_: String,
msg: String,
},
}Expand description
Evaluation error.
#[non_exhaustive]: new variants may be added in a minor release: match
with a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PathNotFound(String)
A Path read did not resolve — the requested key is missing from ctx.
InvalidPath(String)
A Path string is malformed — see Path for the full syntax +
rejection rules. Raised by the read_path / write_path compat
wrappers when their &str argument fails to parse; never raised by
Path::read / Path::write themselves (an already-parsed
Path cannot represent malformed syntax).
NonBoolCond(Value)
Branch.cond evaluated to a non-boolean value.
TypeError
An expression or node received a value of the wrong type (e.g. a
Len/In/comparison/arithmetic operand of the wrong JSON type, or a
Fanout.items result that did not evaluate to an array).
Fields
ArithError
An arithmetic operation failed (division/modulo by zero, or a
numeric result/operand that cannot be represented as f64).
Fields
DispatcherError
The Dispatcher returned an error for the given Step.ref.
ExternError
The Externs registry raised for the given call_extern.ref (e.g.
unregistered ref, or the extern fn itself returned an error).
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze 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
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more