pub enum EngineError {
NotFound(String),
Usage(String),
Setup(String),
NoProject(String),
Detect(DetectFailure),
Call {
plugin: String,
verb: String,
error: CallError,
},
Start {
program: OsString,
source: Error,
},
}Expand description
A program that could not be started.
Variants§
NotFound(String)
The program was not found: either the path a plugin pointed at does not exist, or no name on
PATH matches.
The message is built here rather than by the caller because only this crate knows what was searched, and it is the part a person needs to see.
Usage(String)
The user asked for something impossible (-C at a directory that is not there).
Setup(String)
The setup could not be completed: the store, the manifest list, the project root.
NoProject(String)
No project type was detected, or the pinned plugin cannot answer. Exit code 3.
Detect(DetectFailure)
The decision refused to choose, with the reason the decision crate reported.
Call
The plugin answered that it cannot do this.
Fields
Start
It was found, and starting it failed anyway.
Implementations§
Source§impl EngineError
impl EngineError
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Whether this is “there is no such program”, which is a setup problem rather than a failure.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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()