starfall/astronomy/moons/error/
mod.rs

1use crate::astronomy::host_star::error::Error as HostStarError;
2use crate::astronomy::moon::error::Error as MoonError;
3use crate::astronomy::planet::error::Error as PlanetError;
4
5/// Moon-related errors.
6#[derive(Clone, Debug, Eq, Error, Hash, PartialEq)]
7pub enum Error {
8  /// Host Star Error.
9  #[error("an error occurred in the host star ({0})")]
10  HostStarError(#[from] HostStarError),
11  /// Moon Error.
12  #[error("an error occurred in the moon ({0})")]
13  MoonError(#[from] MoonError),
14  /// Planet Error.
15  #[error("an error occurred in the planet ({0})")]
16  PlanetError(#[from] PlanetError),
17}