1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(thiserror::Error, miette::Diagnostic, Debug)]
pub enum CoordinateError<C>
where
    C: std::error::Error,
{
    #[error("Input/output error")]
    IoError(#[from] std::io::Error),
    #[error("UNIX error")]
    UnixError(#[from] nix::Error),
    #[error(transparent)]
    ControlError(C),
    #[error("Cluster does not exist")]
    DoesNotExist,
}