pub enum TimeError {
Show 17 variants
InvalidDate {
year: i32,
month: u8,
day: u8,
},
InvalidTime {
hour: u8,
minute: u8,
},
InvalidSecond,
InvalidFormat,
KernelDateUnsupported,
EopMissing,
EopParse,
SclkParse,
SclkMissing(&'static str),
SclkUnsupported,
SclkPartitionsUnsupported,
Ut1OutOfRange,
InvalidLeapSecond,
UtcOutOfRange,
LskParse,
LskMissing(&'static str),
Overflow,
}Expand description
Errors returned by stkcraft-time.
Variants§
InvalidDate
A calendar date is not valid for the selected calendar.
InvalidTime
The time of day is outside its legal range.
InvalidSecond
The seconds component is outside 0.0 .. 61.0.
InvalidFormat
A formatting pattern contains an unsupported token.
KernelDateUnsupported
A kernel @date literal is not in a supported N0067 form.
This is deliberately distinct from a missing kernel variable: the literal is present, it simply cannot be resolved.
EopMissing
An EOP table was empty.
EopParse
An IERS EOP file could not be parsed.
SclkParse
A spacecraft clock kernel could not be parsed.
SclkMissing(&'static str)
A required spacecraft clock kernel variable is missing.
SclkUnsupported
The spacecraft clock type is not supported.
SclkPartitionsUnsupported
SCLK partition-aware field/string conversion is not implemented.
Ut1OutOfRange
The requested epoch lies outside the EOP table.
InvalidLeapSecond
A UTC time that does not exist at a leap-second boundary:
23:59:60.x on a day without a positive leap second, or
23:59:59.x on a shortened (86399-second) day.
UtcOutOfRange
The requested UTC epoch lies before the first LSK entry.
LskParse
The LSK text could not be parsed.
LskMissing(&'static str)
A required LSK variable is missing.
Overflow
An arithmetic operation overflowed the internal representation.
Trait Implementations§
impl Eq for TimeError
Source§impl Error for TimeError
Available on crate feature std only.
impl Error for TimeError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()