pub enum XmlDocumentError {
Policy(PolicyViolation),
DocumentTooLarge {
maximum: usize,
actual: usize,
},
DocumentTooDeep {
maximum: usize,
actual: usize,
},
Parse(Error),
BackendParse {
backend: &'static str,
message: String,
},
ForeignIdentity,
StaleIdentity {
identity: u64,
current: u64,
},
MissingNode,
TargetNotElement,
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.
DocumentTooDeep
The input exceeds the active XML element nesting limit.
Fields
Parse(Error)
The XML parser rejected the document.
BackendParse
The selected parser backend rejected the document.
Fields
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.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for XmlDocumentError
impl From<Error> for XmlDocumentError
Source§impl From<PolicyViolation> for XmlDocumentError
impl From<PolicyViolation> for XmlDocumentError
Source§fn from(source: PolicyViolation) -> Self
fn from(source: PolicyViolation) -> Self
Converts to this type from the input type.
Source§impl From<XmlDocumentError> for XmlMutationError
impl From<XmlDocumentError> for XmlMutationError
Source§fn from(source: XmlDocumentError) -> Self
fn from(source: XmlDocumentError) -> Self
Converts to this type from the input type.
Source§impl From<XmlDocumentError> for SigningDigestError
impl From<XmlDocumentError> for SigningDigestError
Source§fn from(source: XmlDocumentError) -> Self
fn from(source: XmlDocumentError) -> Self
Converts to this type from the input type.
Source§impl From<XmlDocumentError> for SigningError
impl From<XmlDocumentError> for SigningError
Source§fn from(source: XmlDocumentError) -> Self
fn from(source: XmlDocumentError) -> Self
Converts to this type from the input type.
Source§impl From<XmlDocumentError> for DsigError
impl From<XmlDocumentError> for DsigError
Source§fn from(source: XmlDocumentError) -> Self
fn from(source: XmlDocumentError) -> Self
Converts to this type from the input type.
Source§impl From<XmlDocumentError> for XmlEncError
impl From<XmlDocumentError> for XmlEncError
Source§fn from(source: XmlDocumentError) -> Self
fn from(source: XmlDocumentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmlDocumentError
impl RefUnwindSafe for XmlDocumentError
impl Send for XmlDocumentError
impl Sync for XmlDocumentError
impl Unpin for XmlDocumentError
impl UnsafeUnpin for XmlDocumentError
impl UnwindSafe for XmlDocumentError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more