pub enum WorkflowError {
QueryFailed(String),
NotifyFailed(String),
NoTransition {
state: String,
workflow: String,
},
MissingContextKey(String),
AlreadyTerminal(String),
PersistenceFailed(String),
Timeout {
event: String,
},
ChargeFailed(String),
Other(String),
}Expand description
Errors that can occur during workflow execution.
Variants§
QueryFailed(String)
Query execution failed
NotifyFailed(String)
Notification delivery failed
NoTransition
No transition found for current state
Fields
MissingContextKey(String)
Context key not found
AlreadyTerminal(String)
Workflow has reached a terminal state
PersistenceFailed(String)
State persistence failed
Timeout
Timeout reached while waiting
ChargeFailed(String)
Payment charge creation failed
Other(String)
Generic error
Trait Implementations§
Source§impl Debug for WorkflowError
impl Debug for WorkflowError
Source§impl Display for WorkflowError
impl Display for WorkflowError
Source§impl Error for WorkflowError
impl Error for WorkflowError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WorkflowError
impl RefUnwindSafe for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin for WorkflowError
impl UnsafeUnpin for WorkflowError
impl UnwindSafe for WorkflowError
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