pub enum EngineError {
Show 23 variants
UnsupportedSchemaVersion {
package_kind: &'static str,
package_id: String,
version: String,
supported: &'static str,
},
DuplicateDefinitionPackage(String),
UnknownCapability(String),
DuplicateCapability(String),
UnknownParameter {
capability: String,
parameter: String,
},
MissingParameter {
capability: String,
parameter: String,
},
InvalidParameterType {
capability: String,
parameter: String,
},
InvalidTableRow {
capability: String,
parameter: String,
row: usize,
detail: String,
},
DuplicateBinding(String),
InvalidRuleId(String),
UnknownDefinition(String),
MissingDefinitionPackage(String),
CapabilityContract {
definition: String,
capability: String,
detail: String,
},
DuplicateRule(String),
DuplicateRuleSet(String),
NoRuleSet,
DuplicateConcept(String),
UnknownConcept {
rule: String,
kind: String,
concept: String,
},
DuplicateReportTable {
rule: String,
table: String,
},
InvalidRefinement {
rule: String,
detail: String,
},
MissingRefiner(&'static str),
InvalidDependency {
rule: String,
detail: String,
},
InvalidClassification {
classification: String,
detail: String,
},
}Expand description
Errors while compiling untrusted declarations into a trusted execution plan.
Variants§
UnsupportedSchemaVersion
A package declares a schema version this compiler does not implement.
DuplicateDefinitionPackage(String)
Multiple supplied definition packages declared the same package identity.
UnknownCapability(String)
A capability was not registered by the host.
DuplicateCapability(String)
Two trusted implementations claimed an ID.
UnknownParameter
A package supplied a non-declared parameter.
MissingParameter
A required parameter was absent.
InvalidParameterType
A binding type did not conform to its descriptor.
InvalidTableRow
A row of a table-valued binding does not fit the declared columns.
DuplicateBinding(String)
A rule binds a parameter more than once.
InvalidRuleId(String)
A rule ID violates the engine identity contract.
UnknownDefinition(String)
A rule references no loaded definition.
MissingDefinitionPackage(String)
A ruleset references a definition package that was not supplied.
CapabilityContract
A trusted capability descriptor conflicts with its portable definition.
DuplicateRule(String)
Rule IDs must be unique throughout the recursive folder tree.
DuplicateRuleSet(String)
Two rulesets compiled together share a package ID.
NoRuleSet
No ruleset was given to compile.
DuplicateConcept(String)
Two loaded definition packages declare the same concept identity.
UnknownConcept
A rule names a concept no loaded definition package declares.
DuplicateReportTable
One rule reported two tables of one name.
InvalidRefinement
A rule refines its outcomes in a way the package or the capability cannot support, such as severity bands on a capability that reports no deviation.
MissingRefiner(&'static str)
The host asked the runtime to refine every outcome (locate it) and registered no outcome refiner to do so.
InvalidDependency
A rule’s gate or ruleOutcome selector names no rule of its
ruleset, a cycle of rules depends on itself, or the host registered
no outcome refiner to read another rule’s selection.
InvalidClassification
A classification the ruleset derives is malformed, reads a rule’s outcome, depends on itself through other classifications, is declared twice with different rows, or the host registered no outcome refiner to evaluate its rows.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
impl Eq for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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()