#[non_exhaustive]pub enum WorkflowError {
Show 18 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,
DurableWaitRequiresWorker,
WakeMismatch,
Wait(WorkflowWaitError),
Serialization(Error),
Budget(BudgetExceeded),
ChildRun(ChildRunError),
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
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.
DurableWaitRequiresWorker
A durable wait was executed outside the distributed worker boundary.
WakeMismatch
Stored wake data does not match the checkpoint’s durable wait.
Wait(WorkflowWaitError)
A durable wait or human decision violated its domain invariants.
Serialization(Error)
A durable wait output could not be represented as canonical JSON.
Budget(BudgetExceeded)
Parallel budget reservation or consumption exceeded a hard limit.
ChildRun(ChildRunError)
A child Run rejected its capability or budget scope.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()