#[non_exhaustive]pub enum RuntimeError {
ExecutionCancelled,
OutputScope {
path: PathBuf,
source: Error,
},
Task {
task: String,
source: Box<dyn Error + Send + Sync + 'static>,
},
TaskPanicked {
task: String,
},
TaskTimedOut {
task: String,
timeout: Duration,
},
TaskCancelled {
task: String,
},
PhaseTimedOut {
phase: String,
timeout: Duration,
},
StartWorker {
scope: String,
source: Error,
},
ReplicatePanicked {
index: u64,
},
Replicate {
index: u64,
source: Box<RuntimeError>,
},
}Expand description
A failure after an immutable study passed preflight.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ExecutionCancelled
Interactive UI requested cooperative cancellation of the execution.
OutputScope
Runtime could not create an inferred execution or replicate scope.
Task
A model or program invocation returned an application, process, state, observation, or persistence error.
Fields
TaskPanicked
A task invocation panicked in its runtime worker.
TaskTimedOut
A task exceeded its timeout; models stop cooperatively while external programs are terminated by Runtime.
TaskCancelled
A running task stopped because Runtime cancelled it. Models stop cooperatively while external programs are terminated.
PhaseTimedOut
A phase exceeded its timeout. Its active model tasks stop cooperatively and its active external programs are terminated.
StartWorker
Runtime could not start an operating-system worker thread.
ReplicatePanicked
A replicate worker panicked.
Replicate
At least one replicate failed under a finish-all policy.
Fields
source: Box<RuntimeError>Original runtime failure.
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()
Source§impl From<RuntimeError> for WorkflowError
impl From<RuntimeError> for WorkflowError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more