starfall/astronomy/moons/error/
mod.rs1use 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#[derive(Clone, Debug, Eq, Error, Hash, PartialEq)]
7pub enum Error {
8 #[error("an error occurred in the host star ({0})")]
10 HostStarError(#[from] HostStarError),
11 #[error("an error occurred in the moon ({0})")]
13 MoonError(#[from] MoonError),
14 #[error("an error occurred in the planet ({0})")]
16 PlanetError(#[from] PlanetError),
17}