#[non_exhaustive]pub enum FlowError {
Show 28 variants
RunNotFound(String),
RunTerminal(String),
InvalidRunId(String),
ContinueAsNewCycle(String),
ContinueAsNewLimitExceeded(usize),
ChildWorkflowCycle(String),
ChildWorkflowDepthExceeded(usize),
RunConflict {
run_id: String,
reason: String,
},
InvalidRuntimeBuildId(String),
InvalidWorkflowPatchId(String),
RuntimeBuildUnavailable {
run_id: String,
required_build_id: Option<RuntimeBuildId>,
current_build_id: Option<RuntimeBuildId>,
},
RuntimeBuildRouteNotFound {
required_build_id: Option<RuntimeBuildId>,
},
NonDeterministic {
run_id: String,
reason: String,
},
EventConflict {
run_id: String,
expected_sequence: u64,
actual_sequence: u64,
},
HookTokenNotFound(String),
LeaseLost(String),
HookTokenConflict {
token: String,
existing_run_id: String,
existing_hook_id: String,
},
HookConflict {
run_id: String,
hook_id: String,
reason: String,
},
SignalConflict {
run_id: String,
signal_id: String,
reason: String,
},
InvalidWorkflow(String),
InvalidTransition(String),
InvalidWorkerConfiguration(String),
TaskManagement(String),
Store(String),
Runtime(String),
Serialization(Error),
Io(Error),
ReplayLimitExceeded(usize),
}Expand description
Errors surfaced by the workflow engine and runtime adapters.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RunNotFound(String)
A requested workflow run does not exist.
RunTerminal(String)
An operation attempted to append work to a terminal run.
InvalidRunId(String)
A run identifier violates the storage-safe identifier contract.
ContinueAsNewCycle(String)
A continue-as-new chain contains a repeated run.
ContinueAsNewLimitExceeded(usize)
A continue-as-new chain exceeds the configured traversal bound.
ChildWorkflowCycle(String)
Parent and child ownership links contain a cycle.
ChildWorkflowDepthExceeded(usize)
A child workflow request exceeds the configured nesting bound.
RunConflict
An idempotent run start disagrees with the existing run definition.
Fields
InvalidRuntimeBuildId(String)
A runtime build identity is empty or malformed.
InvalidWorkflowPatchId(String)
A workflow patch identity is empty, malformed, or too long.
No configured runtime can replay the run’s pinned build.
RuntimeBuildRouteNotFound
No task queue route is registered for a required runtime build.
Fields
required_build_id: Option<RuntimeBuildId>Runtime build required by the task, if pinned.
NonDeterministic
Runtime replay emitted a command that conflicts with durable history.
Fields
EventConflict
An optimistic event append used a stale expected sequence.
Fields
HookTokenNotFound(String)
The original token remains available for programmatic routing, while
Display and Debug deliberately redact it.
LeaseLost(String)
A queue lease was lost before its task could be acknowledged.
HookTokenConflict
The conflicting token remains available for programmatic handling,
while Display and Debug deliberately redact it.
Fields
HookConflict
A hook retry conflicts with its durable identity or resolution.
Fields
SignalConflict
A signal retry conflicts with its durable identity or payload.
Fields
InvalidWorkflow(String)
A workflow definition violates a static invariant.
InvalidTransition(String)
An event or command violates the current durable state.
InvalidWorkerConfiguration(String)
Worker settings cannot provide the requested execution guarantees.
TaskManagement(String)
An external task manager rejected or failed an operation.
Store(String)
A durable event store rejected or failed an operation.
Runtime(String)
A workflow or step runtime failed outside application commands.
Serialization(Error)
JSON serialization or deserialization failed.
Io(Error)
Filesystem, process, or stream I/O failed.
ReplayLimitExceeded(usize)
Replay emitted more commands than the configured safety bound.
Trait Implementations§
Source§impl Error for FlowError
impl Error for FlowError
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()