pub enum QueryError {
BearingProjectNotInWorkspace {
name: String,
},
CanonicalisePattern {
canonical: String,
},
GlobIntersect {
source: GlobIntersectError,
},
}Expand description
Failure produced by the query engine.
Maps to the EXEC-021 internal / configuration-error class
per QRY-009. Each variant carries enough context to render
a precise CLI diagnostic.
Variants§
BearingProjectNotInWorkspace
The bearing project supplied by the caller does not
exist in the workspace. Should not occur when the
bearing project is derived from a cwd lookup via
EXEC-022, but the engine surfaces it as a typed error
rather than panicking.
CanonicalisePattern
A canonicalised path pattern failed to re-parse after anchoring to its workspace-absolute form. Should not occur for patterns that already passed validation; the variant exists so the engine has a typed surface for any future canonicalisation regressions.
GlobIntersect
The glob-glob intersection routine failed for one of the
--inputs / --outputs atoms.
Fields
source: GlobIntersectErrorThe underlying intersection-routine failure.
Trait Implementations§
Source§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
Source§impl Error for QueryError
impl Error for QueryError
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 ErrorCompat for QueryError
impl ErrorCompat for QueryError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read more