pub enum PhoneXmlError {
LimitExceeded {
kind: &'static str,
actual: usize,
maximum: usize,
},
InvalidUtf8(Utf8Error),
DocumentTypeForbidden,
InvalidEntity,
InvalidAlarmSchema,
InvalidLocationSchema,
NestingTooDeep {
maximum: usize,
},
Malformed(Error),
Deserialize(DeError),
Serialize(SeError),
Write(Error),
InvalidField {
field: &'static str,
expected: &'static str,
},
}Expand description
Schema, resource-limit, and serialization failures at the XML boundary.
Variants§
LimitExceeded
A collection or encoded document crossed its explicit resource bound.
InvalidUtf8(Utf8Error)
Undeclared non-UTF-8 input reached a UTF-8-only boundary.
DocumentTypeForbidden
A document-type declaration was rejected before entity expansion.
InvalidEntity
An entity reference was undeclared or resolved to an invalid XML character.
InvalidAlarmSchema
A recognized alarm root did not satisfy its typed schema.
InvalidLocationSchema
A recognized location root did not satisfy its typed schema.
NestingTooDeep
Element depth crossed PHONE_XML_MAX_NESTING_DEPTH.
Malformed(Error)
Tokenization failed before typed deserialization.
Deserialize(DeError)
The XML was well-formed but did not match the selected model.
Serialize(SeError)
The typed model could not be converted to XML.
Write(Error)
A formatting sink failed while receiving a bounded serialized document.
InvalidField
A model value violated a schema invariant beyond its Rust type.
Trait Implementations§
Source§impl Debug for PhoneXmlError
impl Debug for PhoneXmlError
Source§impl Display for PhoneXmlError
impl Display for PhoneXmlError
Source§impl Error for PhoneXmlError
impl Error for PhoneXmlError
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()