コンテンツにスキップ

HorizonsError

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

Defined in: horizons.rs:54

pub enum HorizonsError {
MissingStartMarker,
MissingEndMarker,
RowTooShort { line: usize, fields: usize },
ParseField { line: usize, field: &'static str, value: String },
NoData,
NotSorted { index: usize },
Io(String),
Fetch(String),
}

Errors produced by the Horizons parser / fetcher.

$$SOE start-of-ephemeris marker not found.


$$EOE end-of-ephemeris marker not found.


line: usize fields: usize

A row in the ephemeris block had too few comma-separated fields.


line: usize field: &‘static str value: String

A numeric field could not be parsed.


No samples were found between $$SOE and $$EOE.


index: usize

Samples are not in ascending epoch order.


Io(String)

I/O error while reading a file.


Fetch(String)

HTTP / fetch error (only produced with the fetch-horizons feature).