pub enum ErrorKind {
Show 24 variants
IoError(Error),
XmlError(Error),
AttrError(AttrError),
InvalidUtf8(Utf8Error),
EscapeError(EscapeError),
EncodingError(EncodingError),
DuplicateAttribute(RawByteStr),
DuplicateElement(RawByteStr),
UnexpectedAttribute(RawByteStr),
MissingAttribute(RawByteStr),
MissingElement(RawByteStr),
InvalidData(RawByteStr),
InvalidValue(RawByteStr, ValidateError),
MissingContent,
DuplicateContent,
MissingAnyElement,
DuplicateAnyElement,
MissingName,
UnknownOrInvalidValue(RawByteStr),
InsufficientSize {
min: usize,
max: usize,
actual: usize,
},
InvalidUnion(UnionError),
Custom(Box<dyn StdError + Send + Sync>),
UnexpectedEvent(Event<'static>),
UnexpectedEof,
}
Expand description
Quick XML error kind.
Variants§
IoError(Error)
Error forwarded from the quick_xml
crate.
XmlError(Error)
Error forwarded from the quick_xml
crate.
AttrError(AttrError)
Attribute error forwarded from the quick_xml
crate.
InvalidUtf8(Utf8Error)
Invalid UTF-8 string.
EscapeError(EscapeError)
Escape Error
EncodingError(EncodingError)
Encoding Error
DuplicateAttribute(RawByteStr)
Duplicate attribute.
The attribute was expected only once.
DuplicateElement(RawByteStr)
Duplicate element.
The element was expected only once.
UnexpectedAttribute(RawByteStr)
Unexpected attribute.
The attribute was not expected for the current element.
MissingAttribute(RawByteStr)
Missing attribute.
The attribute was expected to be present, but it was not.
MissingElement(RawByteStr)
Missing element.
The element was expected to be present, but it was not.
InvalidData(RawByteStr)
Invalid data.
InvalidValue(RawByteStr, ValidateError)
Invalid value.
MissingContent
Missing content.
The element was expected to have some content, but it haven’t.
DuplicateContent
Duplicate content.
The content was expected only once.
MissingAnyElement
Missing any element.
The element was expected to have at least one xs:any
element, but it haven’t.
DuplicateAnyElement
Duplicate content.
The xs:any
element is only expected once.
MissingName
Missing name.
The serializer is not able to set a default name for the specified value.
UnknownOrInvalidValue(RawByteStr)
Unknown or invalid value.
InsufficientSize
Insufficient size.
The element or attribute contains less items then expected.
Fields
InvalidUnion(UnionError)
Invalid union.
Custom(Box<dyn StdError + Send + Sync>)
Custom error.
Can store any kind of error.
UnexpectedEvent(Event<'static>)
Unexpected quick_xml
event.
UnexpectedEof
Unexpected end of file.