Skip to content

KvnParseError

Defined in: kvn.rs:22

Available on crate feature alloc only.

pub enum KvnParseError {
MissingField(&'static str),
InvalidValue { key: &'static str, value: alloc::string::String },
InvalidEpoch(alloc::string::String),
Unsupported(UnsupportedMetadata),
InvalidElements(ElementsError),
}

Error type for OMM KVN parsing.

MissingField(&‘static str)

A required keyword was absent.


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

A keyword’s value 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 keyword declares something this crate cannot read (non-Earth center, non-TEME frame, non-UTC time system, non-SGP4 theory).


InvalidElements(ElementsError)

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