#[non_exhaustive]pub struct DirectiveFailure { /* private fields */ }Expand description
A directive whose schema document could not be read (see
SchemaSet::directive_failures).
Display: xs:include schemaLocation="missing.xsd" at main.xsd:2:3: the schema document could not be read: Failed to read file '…': ….
Implementations§
Source§impl DirectiveFailure
impl DirectiveFailure
Sourcepub fn kind(&self) -> CompositionEdgeKind
pub fn kind(&self) -> CompositionEdgeKind
The directive: include, import, redefine or override.
Sourcepub fn schema_location(&self) -> Option<&str>
pub fn schema_location(&self) -> Option<&str>
The schemaLocation as written, or, for an import without one that
a catalog entry mapped, None.
Sourcepub fn resolved_location(&self) -> Option<&str>
pub fn resolved_location(&self) -> Option<&str>
The location that was read and failed: the location rewriter’s
answer for the schemaLocation, if one is set (final, see
LocationRewriter), else the schemaLocation resolved against the
including document’s base URI; for an xs:import whose namespace the
catalog maps, the catalog’s location (tried after the hint, so the one
whose failure is reported).
Sourcepub fn namespace_supplied(&self) -> bool
pub fn namespace_supplied(&self) -> bool
Whether another document of the set supplies the namespace of this
xs:import — a location hint failed, but the namespace’s components
are not missing for that (they may still be incomplete). Always
false for the other directives.
Sourcepub fn location(&self) -> Option<&SourceLocation>
pub fn location(&self) -> Option<&SourceLocation>
Where the directive is, in the document that contains it.
Sourcepub fn error(&self) -> &SchemaError
pub fn error(&self) -> &SchemaError
Why the document could not be read (a resolution or I/O error).