#[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()