pub enum AtomError {
InvalidTagName {
span: Span,
source: NameError,
},
InvalidProjectName {
span: Span,
source: NameError,
},
InvalidTaskName {
span: Span,
source: NameError,
},
InvalidPathPattern {
span: Span,
source: PathPatternError,
},
MissingRelationalColon {
span: Span,
},
UnknownRelationalKind {
span: Span,
kind: String,
},
}Expand description
Atom-validation failure produced while lifting a parsed atom to its typed representation. Each variant captures the offending byte span and the underlying validation error.
Variants§
InvalidTagName
Violates QRY-003 for --tags: the atom text is not a
valid TagName per ID-001..ID-005.
Fields
InvalidProjectName
Violates QRY-003 for --projects: the atom text is not
a valid ProjectName per ID-001..ID-005.
Fields
InvalidTaskName
Violates QRY-003 for --tasks: the atom text is not a
valid TaskName per ID-001..ID-005.
Fields
InvalidPathPattern
Violates QRY-003 for --inputs / --outputs: the atom
text is not a valid path pattern per
PATH-001..PATH-016.
Fields
source: PathPatternErrorUnderlying path-pattern-rule violation.
MissingRelationalColon
Violates QRY-004: the relational atom is missing the
: separator between the kind keyword and the value.
UnknownRelationalKind
Violates QRY-004: the kind keyword of the relational
atom is not one of name, project, or tag
(case-sensitive).
Trait Implementations§
Source§impl Error for AtomError
impl Error for AtomError
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 AtomError
impl ErrorCompat for AtomError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read more