pub enum CallError {
Intrinsic(IntrinsicError),
Path(String),
}Expand description
Failure evaluating an intrinsic expression.
Variants§
Intrinsic(IntrinsicError)
The function itself failed (bad arguments, unknown function, …):
surfaced as States.Runtime, naming the call, as recorded.
Path(String)
A JSONPath argument matched nothing: surfaced as States.Runtime, as
for every other path that matches nothing.
Implementations§
Source§impl CallError
impl CallError
Sourcepub fn into_states_error(self, call: &str) -> (String, String)
pub fn into_states_error(self, call: &str) -> (String, String)
The (error, cause) pair a state fails with when evaluating call. As
recorded, a failing function is a States.Runtime failure, which no
Retry or Catch wildcard takes: There was an error while evaluating the intrinsic function: States.MathAdd($.s, 1). Invalid arguments in States.MathAdd.
Trait Implementations§
Source§impl From<IntrinsicError> for CallError
impl From<IntrinsicError> for CallError
Source§fn from(e: IntrinsicError) -> Self
fn from(e: IntrinsicError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CallError
impl Freeze for CallError
impl Move for CallError
impl RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
impl UnwindSafe for CallError
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