Enum nyx_space::NyxError

source ·
pub enum NyxError {
Show 41 variants SingularStateTransitionMatrix, FuelExhausted(Box<Spacecraft>), ConditionNeverTriggered, UnsufficientTriggers(usize, usize), MaxIterReached(String), EventNotInEpochBraket(String, String), StateTransitionMatrixUnset, SensitivityNotUpdated, SingularKalmanGain, SingularCovarianceMatrix, CovarianceMatrixNotPsd, SingularJacobian, TargetsTooClose, LambertNotReasonablePhi, LambertMultiRevNotSupported, PartialsUndefined, StateParameterUnavailable, LoadingError(String), FileUnreadable(String), ObjectNotFound(String), NoInterpolationData(String), InvalidInterpolationData(String), NoStateData(String), DisjointFrameOrientations(String, String), NoThrusterAvail, CtrlNotAUnitVector(f64), CtrlThrottleRangeErr(f64), PolynomialOrderError(usize), NoObjectiveDefined, ExportError(String), NotHyperbolic(String), CorrectionIneffective(String), MonteCarlo(String), CCSDS(String), MultipleShootingTargeter(usize, Box<NyxError>), CustomError(String), TimeError(TimeErrors), Targeter(Box<TargetingError>), Trajectory(TrajError), MathDomain(String), GuidanceConfigError(String),
}
Expand description

Nyx will (almost) never panic and functions which may fail will return an error.

Variants§

§

SingularStateTransitionMatrix

STM is singular, propagation or smoothing cannot proceed

§

FuelExhausted(Box<Spacecraft>)

Fuel exhausted at the provided spacecraft state

§

ConditionNeverTriggered

Propagation event not triggered within the max propagation time

§

UnsufficientTriggers(usize, usize)

Propagation event not hit enough times (requested, found).

§

MaxIterReached(String)

Maximum iterations reached

§

EventNotInEpochBraket(String, String)

Event not found within the provided epochs

§

StateTransitionMatrixUnset

The operation was expecting the state to have an STM, but it isn’t present.

§

SensitivityNotUpdated

The sensitivity matrix must be updated prior to a filter measurement update

§

SingularKalmanGain

Kalman Gain could not be computed because HP_barH + R is singular

§

SingularCovarianceMatrix

Singular Covariance

§

CovarianceMatrixNotPsd

Covariance is not positive semi definite

§

SingularJacobian

Singular Jacobian

§

TargetsTooClose

Targets in Lambert solver too close: Δν ~=0 and A ~=0

§

LambertNotReasonablePhi

No reasonable phi found to connect both radii

§

LambertMultiRevNotSupported

Multi revolution Lambert not supported, use the Izzo algorithm for multi-rev transfers

§

PartialsUndefined

Partials for this dynamical model are not defined

§

StateParameterUnavailable

State parameter cannot be used in this function

§

LoadingError(String)

Could not load file

§

FileUnreadable(String)

Could not read file

§

ObjectNotFound(String)

Celestial object or spacecraft not found

§

NoInterpolationData(String)

No interpolation data

§

InvalidInterpolationData(String)

Invalid interpolation data

§

NoStateData(String)

No state data

§

DisjointFrameOrientations(String, String)

Cannot convert the state to another frame as the frames are disjoint

§

NoThrusterAvail

No thruster attached to spacecraft

§

CtrlNotAUnitVector(f64)

Control vector is not a unit vector

§

CtrlThrottleRangeErr(f64)

Throttle is not between 0.0 and 1.0

§

PolynomialOrderError(usize)

Happens when trying to modify a polynomial’s (error)-th error but the polynomial has less orders than that

§

NoObjectiveDefined

An objective based analysis or control was attempted, but no objective was defined

§

ExportError(String)

Error when exporting data

§

NotHyperbolic(String)

This computation requires the orbit to be hyperbolic

§

CorrectionIneffective(String)

Control variables to not decrease targeting error in differential corrector

§

MonteCarlo(String)

Monte Carlo error

§

CCSDS(String)

CCSDS error

§

MultipleShootingTargeter(usize, Box<NyxError>)

Multiple shooting failed with the provided error at the provided node computation

§

CustomError(String)

§

TimeError(TimeErrors)

Time related error

§

Targeter(Box<TargetingError>)

Targeting error

§

Trajectory(TrajError)

Trajectory error

§

MathDomain(String)

Math domain

§

GuidanceConfigError(String)

Guidance law config error

Trait Implementations§

source§

impl Clone for NyxError

source§

fn clone(&self) -> NyxError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NyxError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for NyxError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for NyxError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Errors> for NyxError

source§

fn from(e: TimeErrors) -> Self

Converts to this type from the input type.
source§

impl From<NyxError> for ParsingError

source§

fn from(error: NyxError) -> Self

Converts to this type from the input type.
source§

impl From<TargetingError> for NyxError

source§

fn from(e: TargetingError) -> Self

Converts to this type from the input type.
source§

impl From<TrajError> for NyxError

source§

fn from(e: TrajError) -> Self

Converts to this type from the input type.
source§

impl PartialEq<NyxError> for NyxError

source§

fn eq(&self, other: &NyxError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for NyxError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Printing<T> for Twhere T: Display,

§

fn to_str(self) -> String

Method to serialize. Decorates Vecs with square brackets and tuples with round ones. Implementation code is in printing.rs.
§

fn to_plainstr(self) -> String

Method to serialize in minimal form (space separated, no brackets) Implementation code is in printing.rs.
§

fn rd(self) -> String

Printable in red
§

fn gr(self) -> String

Printable in green
§

fn bl(self) -> String

Printable in blue
§

fn yl(self) -> String

Printable in yellow
§

fn mg(self) -> String

Printable in magenta
§

fn cy(self) -> String

Printable in cyan
§

fn wvec(self, f: &mut File) -> Result<(), Error>

Method to write vector(s) to file f (space separated, without brackets). Passes up io errors
§

fn pvec(self)

Method to print vector(s) to stdout (space separated,without brackets).
source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq<T> + Debug,