Skip to main content

sidereon_core/astro/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug, Clone)]
4pub enum PropagationError {
5    #[error("Invalid input: {0}")]
6    InvalidInput(String),
7
8    #[error("Numerical failure: {0}")]
9    NumericalFailure(String),
10
11    #[error("Maximum number of steps exceeded")]
12    MaxStepsExceeded,
13
14    #[error("Event failure: {0}")]
15    EventFailure(String),
16
17    #[error("Force model failure: {0}")]
18    ForceModelFailure(String),
19}