starfall/astronomy/star_system/error/
mod.rs

1use crate::astronomy::star::error::Error as StarError;
2use crate::astronomy::star_subsystem::error::Error as StarSubsystemError;
3
4/// Star system errors.
5#[derive(Clone, Debug, Eq, Error, Hash, PartialEq)]
6pub enum Error {
7  /// Star Error.
8  #[error("an error occurred in the star ({0})")]
9  StarError(#[from] StarError),
10  /// StarSubsystem Error.
11  #[error("an error occurred in the star subsystem ({0})")]
12  StarSubsystemError(#[from] StarSubsystemError),
13  /// No suitable StarSubsystems found.
14  #[error("no suitable subsystems could be generated")]
15  NoSuitableSubsystemsCouldBeGenerated,
16}