starfall/astronomy/star_system/error/
mod.rs1use crate::astronomy::star::error::Error as StarError;
2use crate::astronomy::star_subsystem::error::Error as StarSubsystemError;
3
4#[derive(Clone, Debug, Eq, Error, Hash, PartialEq)]
6pub enum Error {
7 #[error("an error occurred in the star ({0})")]
9 StarError(#[from] StarError),
10 #[error("an error occurred in the star subsystem ({0})")]
12 StarSubsystemError(#[from] StarSubsystemError),
13 #[error("no suitable subsystems could be generated")]
15 NoSuitableSubsystemsCouldBeGenerated,
16}