pot_rs/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum PotError {
5    #[error("System configuration incomplete")]
6    IncompleteSystemConf,
7    #[error("Command {0} not found")]
8    WhichError(String),
9    #[error("Invalid UTF-8 string")]
10    Utf8Error(#[from] std::string::FromUtf8Error),
11    #[error("Invalid Path {0} - no parent")]
12    PathError(String),
13    #[error("Error during a file operation")]
14    FileError(#[from] std::io::Error),
15    #[error("jls failed")]
16    JlsError,
17    #[error("Invalid bridge configuration")]
18    BridgeConfError,
19}