#[non_exhaustive]pub enum RuntimeError {
Show 60 variants
SerializeExecutionRecord {
source: Error,
},
WriteExecutionRecord {
path: PathBuf,
source: Error,
},
ExecutionRecordTimestamp {
operation: &'static str,
source: Format,
},
SerializeExecutionPlan {
source: Error,
},
WriteExecutionPlan {
path: PathBuf,
source: Error,
},
ExecutionPlanConflict {
path: PathBuf,
},
PhaseExecutionFailed {
summary: RuntimeSummary,
source: Box<RuntimeError>,
},
Configuration(ConfigurationError),
TerminalAlreadyOwned,
TaskCountTooLarge {
task_count: u64,
},
EmptyPhase {
phase: u64,
},
EmptyPhaseSet,
InvalidPhaseLabel {
phase: u64,
},
InvalidPhaseWorkloadLimit {
phase: u64,
},
InvalidPhaseQueueCapacity {
phase: u64,
},
InvalidPhaseTiming {
phase: u64,
setting: &'static str,
},
DuplicatePhaseId {
phase: u64,
},
UnknownPhaseDependency {
phase: u64,
dependency: u64,
},
PhaseDependencyCycle {
phase: u64,
},
UnknownSelectedPhase {
phase: u64,
},
UnsatisfiedPhaseDependency {
phase: u64,
dependency: u64,
},
PhaseConfirmationEof {
phase: u64,
},
PhaseConfirmationInput {
phase: u64,
source: Error,
},
MissingTaskWorkload {
task: String,
},
TaskWorkload {
task: String,
source: Box<dyn Error + Send + Sync + 'static>,
},
TaskTimedOut {
task: String,
timeout: Duration,
},
PhaseDeadlineExceeded {
phase: u64,
deadline_after: Duration,
},
SchedulerPanicked,
Cancelled,
InvalidManagedTaskId {
phase: u64,
},
InvalidManagedTaskKind {
task: String,
},
DuplicateManagedTaskId {
phase: u64,
task: String,
},
InconsistentManagedTaskParameters {
kind: String,
first: String,
second: String,
},
UnknownManagedTaskKind {
kind: String,
},
ManagedTaskDisplayCollision {
label: String,
first: String,
second: String,
},
ManagedTaskNotFound {
selector: String,
},
ManagedTaskSelectorAmbiguous {
selector: String,
first: String,
second: String,
},
UnknownManagedTaskParameter {
task: String,
key: String,
},
DecodeManagedTaskParameter {
task: String,
key: String,
source: Error,
},
InvalidTaskParameter {
key: String,
},
ConfiguredTaskParametersImmutable {
task: String,
},
UnknownManagedTask {
task: String,
},
ManagedTaskKindMismatch {
task: String,
requested: &'static str,
actual: &'static str,
},
DuplicateIdentityParameter {
key: String,
},
UnknownIdentityParameter {
key: String,
},
NonUniqueTaskIdentity {
identity: String,
first_ordinal: u64,
second_ordinal: u64,
},
UnknownTaskOrdinal {
task_ordinal: u64,
},
UnknownRegisteredTask {
identity: String,
},
DuplicateRegisteredTask {
identity: String,
},
TaskIdentityMismatch {
task_ordinal: u64,
},
TaskAlreadyStarted {
identity: String,
},
InitialIterationBeyondTarget {
identity: String,
initial: u64,
target: u64,
},
IterationRegressed {
identity: String,
current: u64,
attempted: u64,
},
IterationBeyondTarget {
identity: String,
iteration: u64,
target: u64,
},
TargetIterationNotReached {
identity: String,
current: u64,
target: u64,
},
StartRenderer {
source: Error,
},
TerminalSetup {
operation: &'static str,
source: Error,
},
RendererUnavailable,
RendererPanicked,
IncompleteProgress {
pending: u64,
running: u64,
failed: u64,
},
}Expand description
Failure while planning, executing, or displaying a workflow runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SerializeExecutionRecord
An execution record could not be serialized.
WriteExecutionRecord
An execution record could not be written atomically.
ExecutionRecordTimestamp
An operational execution-record timestamp could not be formatted.
SerializeExecutionPlan
An execution plan could not be serialized.
WriteExecutionPlan
An execution plan could not be written or inspected.
ExecutionPlanConflict
Plan export found different existing content.
PhaseExecutionFailed
A selected phase failed after producing a structured runtime snapshot.
Fields
summary: RuntimeSummaryAll phase outcomes observed through the failed phase.
source: Box<RuntimeError>Exact scheduling, cancellation, panic, or workload cause.
Configuration(ConfigurationError)
Project configuration could not supply a required task or identity value.
TerminalAlreadyOwned
Another live reporter already owns process terminal rendering.
TaskCountTooLarge
The validated task count cannot be represented by this platform.
EmptyPhase
One phase contains no tasks.
EmptyPhaseSet
A first-class reporter/runtime plan contains no phase.
InvalidPhaseLabel
A phase label is empty or whitespace-only.
InvalidPhaseWorkloadLimit
A phase active-workload limit is zero.
InvalidPhaseQueueCapacity
A phase prepared-work queue capacity is zero.
InvalidPhaseTiming
One optional phase timing duration is zero or cannot be represented.
DuplicatePhaseId
A reporter phase list repeats one phase ID.
UnknownPhaseDependency
One phase dependency is not registered in the runtime plan.
PhaseDependencyCycle
The phase dependency graph contains a cycle.
UnknownSelectedPhase
A selected phase ID is absent from the runtime plan.
UnsatisfiedPhaseDependency
Exact selection omitted a dependency that was not externally verified.
PhaseConfirmationEof
Standard input ended before a required phase transition was confirmed.
PhaseConfirmationInput
A required phase-transition confirmation could not read standard input.
Fields
MissingTaskWorkload
One declared task has no executable workload.
TaskWorkload
A task-owned workload returned an error.
TaskTimedOut
One task exceeded its configured elapsed-time limit.
PhaseDeadlineExceeded
One phase exceeded its configured execution deadline.
SchedulerPanicked
A scheduler worker panicked.
Cancelled
Cooperative cancellation stopped the selected runtime plan.
InvalidManagedTaskId
One task has an empty phase-local ID.
InvalidManagedTaskKind
One task has an empty kind/namespace.
DuplicateManagedTaskId
One phase repeats the same phase-local task ID.
InconsistentManagedTaskParameters
Tasks of one kind do not expose one consistent parameter-key set.
UnknownManagedTaskKind
A display projection names a task kind absent from the phase.
ManagedTaskDisplayCollision
Two tasks receive the same requested generated label.
ManagedTaskNotFound
A partial selector matched no managed task.
ManagedTaskSelectorAmbiguous
A partial selector matched more than one managed task.
UnknownManagedTaskParameter
A managed task does not contain one required parameter.
DecodeManagedTaskParameter
One managed task parameter could not be decoded.
InvalidTaskParameter
An explicit parameter key is empty.
ConfiguredTaskParametersImmutable
Configuration-derived parameters cannot be mutated.
UnknownManagedTask
The reporter does not contain one exact first-class task key.
ManagedTaskKindMismatch
A requested handle does not match the task’s declared display kind.
DuplicateIdentityParameter
One identity key was supplied more than once.
UnknownIdentityParameter
One requested identity key is absent from project parameters.
NonUniqueTaskIdentity
Two generated tasks have the same selected parameter identity.
Fields
UnknownTaskOrdinal
A task handle does not belong to the reporter’s configured task space.
UnknownRegisteredTask
A directly registered application task name was not found.
DuplicateRegisteredTask
The same directly registered application task name appeared twice.
TaskIdentityMismatch
A task handle’s selected identity differs from the registered project.
TaskAlreadyStarted
The same task was started more than once.
InitialIterationBeyondTarget
Initial progress lies beyond a known target.
Fields
IterationRegressed
A progress update attempted to move scientific iteration backward.
Fields
IterationBeyondTarget
A progress update exceeded a known target.
Fields
TargetIterationNotReached
Completion was requested before a known target was reached.
Fields
StartRenderer
The sole renderer thread could not be created.
TerminalSetup
Interactive terminal isolation could not be established.
The renderer stopped before accepting a requested message.
RendererPanicked
The renderer thread panicked while the reporter was active.
IncompleteProgress
Successful finalization was requested before every task completed.
Implementations§
Source§impl RuntimeError
impl RuntimeError
Sourcepub fn runtime_summary(&self) -> Option<&RuntimeSummary>
pub fn runtime_summary(&self) -> Option<&RuntimeSummary>
Returns structured outcomes when execution reached a failing phase.
Sourcepub fn execution_cause(&self) -> Option<&RuntimeError>
pub fn execution_cause(&self) -> Option<&RuntimeError>
Returns the underlying execution cause when a phase failed.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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()