pub enum WorkflowError {
WorkflowNotFound(String),
InvalidStrategy(String),
InvalidDefinition(String),
Timeout,
CompensationFailed(String),
GraphError(String),
StorageError(String),
SerializationError(Error),
ContextVariableNotFound(String),
}
Expand description
Error type specific to the kotoba-workflow
crate.
Variants§
WorkflowNotFound(String)
InvalidStrategy(String)
InvalidDefinition(String)
Timeout
CompensationFailed(String)
GraphError(String)
StorageError(String)
SerializationError(Error)
ContextVariableNotFound(String)
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
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<Error> for WorkflowError
impl From<Error> for WorkflowError
Source§impl From<WorkflowError> for KotobaError
Allow WorkflowError
to be converted into KotobaError
.
This is the key to breaking the circular dependency.
impl From<WorkflowError> for KotobaError
Allow WorkflowError
to be converted into KotobaError
.
This is the key to breaking the circular dependency.
Source§fn from(err: WorkflowError) -> Self
fn from(err: WorkflowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkflowError
impl !RefUnwindSafe for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin 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