pub enum RunnerError {
Io {
path: PathBuf,
source: Error,
},
ParseGraphDoc {
path: PathBuf,
message: String,
},
Compile {
path: PathBuf,
source: Box<CompileError>,
},
UnknownGraph {
name: String,
registered: Vec<String>,
},
UnknownRegistries {
name: String,
registered: Vec<String>,
},
InterruptRequiresSqliteTemp {
case: String,
},
Waypoint(WaypointError),
Engine(EngineError),
InvalidField {
field: String,
message: String,
},
NoFinalState,
InvalidThreadId(String),
Live(LiveModeError),
}Expand description
Errors ScenarioRunner::run_case can encounter resolving, compiling or
running a case – always folded into CaseOutcome::Errored by
ScenarioRunner::run_case itself, never propagated as a panic.
Variants§
Io
A file (a graph_doc target, or a snapshot write) could not be read
or written.
ParseGraphDoc
A graph_doc target’s file did not deserialize as a WarGraphDoc.
Fields
Compile
A graph_doc target’s document failed WarGraphDoc::compile.
Fields
source: Box<CompileError>The underlying compile error. Boxed (clippy::result_large_err):
CompileError’s largest variant is well over the lint’s
threshold, and every Result<_, RunnerError> in this module pays
that size on its happy path too if left unboxed.
UnknownGraph
A registered target names a GraphConstructor no
ScenarioRunner::register_graph call registered.
Fields
UnknownRegistries
A scenario’s registries field names a RegistriesFactory no
ScenarioRunner::register_registries call registered.
Fields
InterruptRequiresSqliteTemp
interrupt_after_superstep was set on a case whose scenario does not
use store: sqlite_temp.
Waypoint(WaypointError)
The WaypointPort backing this run reported an error.
Engine(EngineError)
The engine itself reported an error (never a RunOutcome::Failed,
which is a normal terminal outcome an assertion can check).
InvalidField
A case’s input map named a field whose name is not a valid
FieldName.
Fields
NoFinalState
A terminal RunOutcome left no persisted Waypoint to read the final
Battlefield back from.
InvalidThreadId(String)
The generated ThreadId for this run failed validation.
Live(LiveModeError)
options.live was set but the three-way live-mode gate refused
(D-35) – never a silent fallback to scripted mocks.
Trait Implementations§
Source§impl Debug for RunnerError
impl Debug for RunnerError
Source§impl Display for RunnerError
impl Display for RunnerError
Source§impl Error for RunnerError
impl Error for RunnerError
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<EngineError> for RunnerError
impl From<EngineError> for RunnerError
Source§fn from(source: EngineError) -> Self
fn from(source: EngineError) -> Self
Source§impl From<LiveModeError> for RunnerError
impl From<LiveModeError> for RunnerError
Source§fn from(source: LiveModeError) -> Self
fn from(source: LiveModeError) -> Self
Source§impl From<WaypointError> for RunnerError
impl From<WaypointError> for RunnerError
Source§fn from(source: WaypointError) -> Self
fn from(source: WaypointError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerError
impl !UnwindSafe for RunnerError
impl Forget for RunnerError
impl Freeze for RunnerError
impl Send for RunnerError
impl Sync for RunnerError
impl Unpin for RunnerError
impl UnsafeUnpin for RunnerError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more