1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(thiserror::Error, Debug)]
pub enum RatError {
    #[error("{0} is not a valid rest method")]
    InvalidRestMethod(String),
    #[error("selector was not found: {0}")]
    InvalidSelector(String),
    #[error("{0}")]
    InvalidUrl(String),
    #[error("{0}")]
    IO(#[from] std::io::Error),
    #[error("{0}")]
    Reqwest(#[from] reqwest::Error),
    #[error("{0}")]
    SerdeJson(#[from] serde_json::Error),
    #[error("{0}")]
    ParsingError(String),
}