pub enum WorkflowError {
WorkflowMismatch {
doc_wf: String,
provided_wf: String,
},
UnknownPhase(String),
InvalidTransition {
current: String,
target: String,
},
NoCurrentPhase,
}Expand description
Represents errors that can occur during workflow operations.
Variants§
WorkflowMismatch
Occurs when a document’s associated workflow ID does not match the provided workflow ID.
UnknownPhase(String)
Occurs when a referenced phase ID does not exist within the workflow definition.
InvalidTransition
Occurs when an attempted transition from the current phase to a target phase is not allowed by the workflow rules.
NoCurrentPhase
Occurs when a document does not have a current_phase defined, which is required for workflow operations.
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()
Source§impl PartialEq for WorkflowError
impl PartialEq for WorkflowError
impl StructuralPartialEq for WorkflowError
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
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP