Skip to main content

nms_graph/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4#[non_exhaustive]
5pub enum GraphError {
6    #[error("system not found: {0}")]
7    SystemNotFound(String),
8
9    #[error("base not found: {0}")]
10    BaseNotFound(String),
11
12    #[error("no player position available")]
13    NoPlayerPosition,
14}