コンテンツにスキップ

XmlParseError

このコンテンツはまだ日本語訳がありません。

Defined in: xml.rs:27

Available on crate feature alloc only.

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.

MissingElement(&‘static str)

A required element was absent.


key: &‘static str value: alloc::string::String

An element’s text could not be parsed as the expected number.


InvalidEpoch(alloc::string::String)

EPOCH was not a parseable ISO-8601 UTC timestamp (calendar or ordinal / day-of-year form).


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(&‘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(ElementsError)

The parsed values are not a valid element set (e.g. non-positive mean motion or out-of-range eccentricity).