#[non_exhaustive]pub enum ContractError {
Time(TimeError),
Scientific(DtdbError),
NonFinite,
EpochOutOfRange,
HistoricalUtcRequiresExplicitModel,
NaifKernelModelRequired,
InvalidNaifLeapSeconds,
}Expand description
Checked-contract failures, separate from legacy low-level API errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Time(TimeError)
Civil time or kernel coverage error.
Scientific(DtdbError)
Scientific model domain or observer input error.
NonFinite
Numeric input or evaluated output is not finite.
EpochOutOfRange
A continuous epoch cannot be represented by Epoch.
HistoricalUtcRequiresExplicitModel
Historical SOFA UTC is a separate convention from this NAIF contract.
NaifKernelModelRequired
The raw N0067 Julian UTC path requires an unmodified kernel policy.
InvalidNaifLeapSeconds
N0067 TTRANS rejects a non-increasing paired TAI leap table.
Trait Implementations§
Source§impl Debug for ContractError
impl Debug for ContractError
Source§impl Display for ContractError
impl Display for ContractError
Source§impl Error for ContractError
Available on crate feature std only.
impl Error for ContractError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DtdbError> for ContractError
impl From<DtdbError> for ContractError
Auto Trait Implementations§
impl Forget for ContractError
impl Freeze for ContractError
impl Move for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl UnsafeUnpin for ContractError
impl UnwindSafe for ContractError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more