#[non_exhaustive]pub enum ResolutionError {
InvalidProfileOverride {
location: String,
},
InheritanceLoop {
base: String,
},
UriResolutionFailed {
uri: String,
reason: String,
},
MissingTemplateVariantParent {
location: String,
selector: String,
},
TemplateVariantCycle {
location: String,
selector: String,
},
TemplateVariantAnchorNotFound {
location: String,
},
TemplateVariantAmbiguousAnchor {
location: String,
},
InvalidTemplateVariantAdd {
location: String,
},
IntegrityFailure {
uri: String,
expected: String,
actual: String,
},
VersionMismatch {
uri: String,
required: String,
declared: String,
},
}Expand description
Error type for style resolution and inheritance processing at the schema layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidProfileOverride
A profile style attempted to override template-bearing structure.
InheritanceLoop
An inheritance loop was detected.
UriResolutionFailed
A file:// URI could not be resolved.
MissingTemplateVariantParent
A Template V3 variant references a missing parent variant.
Fields
TemplateVariantCycle
A Template V3 variant parent chain contains a cycle.
Fields
TemplateVariantAnchorNotFound
A Template V3 operation matched no components.
TemplateVariantAmbiguousAnchor
A Template V3 operation matched more than one component.
InvalidTemplateVariantAdd
A Template V3 add operation does not define exactly one anchor.
IntegrityFailure
The fetched parent style’s content did not hash to the value declared
in extends-pin.
Fields
VersionMismatch
The fetched style declares a citum-version requirement that the
running engine does not satisfy.
Implementations§
Source§impl ResolutionError
impl ResolutionError
Sourcepub fn from_resolver_error(uri: &str, err: ResolverError) -> Self
pub fn from_resolver_error(uri: &str, err: ResolverError) -> Self
Convert a ResolverError into a ResolutionError for a specific URI.
Trait Implementations§
Source§impl Clone for ResolutionError
impl Clone for ResolutionError
Source§fn clone(&self) -> ResolutionError
fn clone(&self) -> ResolutionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolutionError
impl Debug for ResolutionError
Source§impl Display for ResolutionError
impl Display for ResolutionError
Source§impl Error for ResolutionError
impl Error for ResolutionError
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()
Source§impl PartialEq for ResolutionError
impl PartialEq for ResolutionError
Source§fn eq(&self, other: &ResolutionError) -> bool
fn eq(&self, other: &ResolutionError) -> bool
self and other values to be equal, and is used by ==.