pub enum XmlDocumentError {
Show 14 variants
Policy(PolicyViolation),
DocumentTooLarge {
maximum: usize,
actual: usize,
},
Encoding(Error),
DocumentTooDeep {
maximum: usize,
actual: usize,
},
Parse(ParseError),
AccountedParse(AccountedParseError),
ForeignIdentity,
StaleIdentity {
identity: u64,
current: u64,
},
MissingNode,
TargetNotElement,
EntityExpandedMutationTarget,
InvalidReplacement(String),
IdentityExhausted,
ProjectedNodeLimit {
maximum: usize,
},
}Expand description
Errors from owned document parsing, identity validation, and mutation.
Variants§
Policy(PolicyViolation)
The immutable operation policy contains invalid resource limits.
DocumentTooLarge
The input exceeds the active XML document byte limit.
Encoding(Error)
External XML bytes could not be decoded under the XML encoding contract.
DocumentTooDeep
The input exceeds the active XML element nesting limit.
Fields
Parse(ParseError)
The XML parser rejected the document.
AccountedParse(AccountedParseError)
Scoped parser rejection whose diagnostic retains its paid storage.
ForeignIdentity
An identity belongs to another document.
StaleIdentity
An identity belongs to an earlier document generation.
MissingNode
The node no longer exists in the current parsed tree.
TargetNotElement
A mutation target is not an element.
EntityExpandedMutationTarget
A semantic node was synthesized from a shared entity-reference token.
InvalidReplacement(String)
Replacement content does not satisfy the requested structural shape.
IdentityExhausted
Process-local document provenance space is exhausted.
ProjectedNodeLimit
A projected mutation exceeds the caller’s active node ceiling.
Trait Implementations§
Source§impl Debug for XmlDocumentError
impl Debug for XmlDocumentError
Source§impl Display for XmlDocumentError
impl Display for XmlDocumentError
Source§impl Error for XmlDocumentError
impl Error for XmlDocumentError
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()