XmlParseError
Defined in: xml.rs:27
Available on crate feature
alloconly.
pub enum XmlParseError { MissingElement(&'static str), InvalidValue { key: &'static str, value: alloc::string::String }, InvalidEpoch(alloc::string::String), Unsupported(UnsupportedMetadata), UnsupportedMarkup(&'static str), InvalidElements(ElementsError),}Error type for OMM XML parsing.
Variants
Section titled “Variants”MissingElement
Section titled “MissingElement”MissingElement(&‘static str)
A required element was absent.
InvalidValue
Section titled “InvalidValue”key: &‘static str value: alloc::string::String
An element’s text could not be parsed as the expected number.
InvalidEpoch
Section titled “InvalidEpoch”InvalidEpoch(alloc::string::String)
EPOCH was not a parseable ISO-8601 UTC timestamp (calendar or
ordinal / day-of-year form).
Unsupported
Section titled “Unsupported”Unsupported(UnsupportedMetadata)
A metadata element declares something this crate cannot read (non-Earth center, non-TEME frame, non-UTC time system, non-SGP4 theory).
UnsupportedMarkup
Section titled “UnsupportedMarkup”UnsupportedMarkup(&‘static str)
The document uses a markup declaration this reader does not interpret: a DOCTYPE (whose internal subset can define entities) or a CDATA section. Both can carry text that looks like an element, so a reader that scans for tag names must not read past them.
InvalidElements
Section titled “InvalidElements”InvalidElements(ElementsError)
The parsed values are not a valid element set (e.g. non-positive mean motion or out-of-range eccentricity).