starfall/astronomy/host_star/error/mod.rs
1use crate::astronomy::close_binary_star::error::Error as CloseBinaryStarError;
2use crate::astronomy::star::error::Error as StarError;
3
4/// Moons errors.
5#[derive(Clone, Debug, Eq, Error, Hash, PartialEq)]
6pub enum Error {
7 /// Close Binary Star Error
8 #[error("an error occurred in the close binary star ({0})")]
9 CloseBinaryStarError(#[from] CloseBinaryStarError),
10 /// Star Error
11 #[error("an error occurred in the star ({0})")]
12 StarError(#[from] StarError),
13}