Skip to content

JsonParseError

Defined in: json.rs:25

Available on crate feature alloc only.

pub enum JsonParseError {
Malformed(alloc::string::String),
InvalidEpoch(alloc::string::String),
InvalidElements(ElementsError),
}

Error type for OMM JSON parsing.

Malformed(alloc::string::String)

The input was not a JSON object with the required OMM fields.


InvalidEpoch(alloc::string::String)

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


InvalidElements(ElementsError)

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