#[non_exhaustive]pub enum BuildError {
Io(Error),
Config(String),
ToolMissing(String),
Build(SourceError),
}Expand description
Why a build could not be configured or could not run.
The split is deliberate: Io and Config are reported while the crate::Builder
is being assembled, before any file is touched, and ToolMissing before any tool is
invoked. Only Build can arrive after work has started. A caller can therefore treat
the first three as “you configured this wrong” and the last as “the build failed”,
which are different problems for different people.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
A configured path could not be canonicalized — most often, it does not exist.
Config(String)
A path relationship the builder refuses: a source folder overlapping the output dir, two source folders overlapping each other, or a JS bundle entry outside every registered source folder.
ToolMissing(String)
A configured tool’s binary is not on PATH, discovered before any build work runs
rather than partway through.
Build(SourceError)
A pipeline ran and failed.
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
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()