pub enum DraftError {
DuplicateVariable {
name: String,
},
DuplicateStep {
name: String,
},
DuplicateReturn {
name: String,
},
UnresolvedReference {
step: String,
reference: String,
},
UnresolvedReturn {
returns: String,
reference: String,
},
InvalidMetadata {
operation: &'static str,
reason: String,
},
MissingExtension {
step: String,
operation: &'static str,
extension: String,
},
}Expand description
Errors produced while building or compiling a draft pipeline.
DraftError is returned by construction methods on Pipeline<Draft>
and by Pipeline::compile. Callers should match on the variants
when they want to surface specific failures (duplicate names,
unresolved references) with custom diagnostics — for example when a
loader is translating external configuration into a pipeline.
Variants§
DuplicateVariable
A Pipeline::var call used
a name already bound to another variable.
DuplicateStep
A Pipeline::step call
used a name already bound to another step.
DuplicateReturn
A Pipeline::returns call used a name already bound to another
return block.
UnresolvedReference
Compile-time simulation found a step parameter referencing a store entry that is not produced by any preceding step.
Fields
UnresolvedReturn
Compile-time simulation found a return-block parameter referencing a store entry that is not available at the end of the pipeline.
Fields
InvalidMetadata
Operation metadata failed validation when the operation was
registered — typically a NameSpec::DerivedFrom
referencing a missing input or an input of the wrong type.
Fields
MissingExtension
A step declared an extension requirement that is not registered on the pipeline.
Trait Implementations§
Source§impl Debug for DraftError
impl Debug for DraftError
Source§impl Display for DraftError
impl Display for DraftError
Source§impl Error for DraftError
impl Error for DraftError
1.30.0 · 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()