#[non_exhaustive]pub enum WorkflowError {
Show 14 variants
Build(WorkflowBuildError),
AuthorityEscalation {
step: StepId,
capability: String,
},
Step {
step: StepId,
source: Box<WorkflowStepError>,
},
ParallelBranch {
step: StepId,
branch: StepId,
source: Box<WorkflowStepError>,
},
RaceAllFailed {
step: StepId,
failures: BTreeMap<StepId, String>,
},
Cancelled,
DeadlineExceeded,
Budget(BudgetExceeded),
BudgetReservation(BudgetReservationMismatch),
AmbiguousCheckpoint {
step: StepId,
},
CheckpointIdentityMismatch,
CheckpointUsageMismatch,
Journal(JournalError),
Checkpoint(CheckpointError),
}Expand description
Failure of workflow execution or recovery.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Build(WorkflowBuildError)
A workflow definition is invalid.
AuthorityEscalation
A child requested authority absent from its parent run.
Step
A step failed.
Fields
§
source: Box<WorkflowStepError>Typed step failure.
ParallelBranch
One branch of a parallel node failed.
Fields
§
source: Box<WorkflowStepError>Typed branch failure.
RaceAllFailed
Every branch in a first-success race failed.
Fields
Cancelled
The workflow was cancelled.
DeadlineExceeded
The workflow deadline elapsed.
Budget(BudgetExceeded)
Parallel budget reservation or consumption exceeded a hard limit.
BudgetReservation(BudgetReservationMismatch)
An internal reservation did not belong to this workflow’s run tree.
AmbiguousCheckpoint
Recovery would silently retry a possibly partial step.
CheckpointIdentityMismatch
Persisted state does not belong to this workflow definition.
CheckpointUsageMismatch
Persisted usage is incompatible with the supplied run context.
Journal(JournalError)
Structured event recording failed.
Checkpoint(CheckpointError)
Checkpoint persistence or validation failed.
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<BudgetExceeded> for WorkflowError
impl From<BudgetExceeded> for WorkflowError
Source§fn from(source: BudgetExceeded) -> Self
fn from(source: BudgetExceeded) -> Self
Converts to this type from the input type.
Source§impl From<BudgetReservationMismatch> for WorkflowError
impl From<BudgetReservationMismatch> for WorkflowError
Source§fn from(source: BudgetReservationMismatch) -> Self
fn from(source: BudgetReservationMismatch) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointError> for WorkflowError
impl From<CheckpointError> for WorkflowError
Source§fn from(source: CheckpointError) -> Self
fn from(source: CheckpointError) -> Self
Converts to this type from the input type.
Source§impl From<JournalError> for WorkflowError
impl From<JournalError> for WorkflowError
Source§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowBuildError> for WorkflowError
impl From<WorkflowBuildError> for WorkflowError
Source§fn from(source: WorkflowBuildError) -> Self
fn from(source: WorkflowBuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowError
impl !UnwindSafe for WorkflowError
impl Freeze for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin for WorkflowError
impl UnsafeUnpin 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