blob: 79c556e0f7150b259fff4c880cd3c6bb62d075af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
pub type Result<T> = std::result::Result<T, RepologyError>;
#[derive(thiserror::Error, Debug)]
pub enum RepologyError {
#[error("Borrow mutable error")]
BorrowMutErr(#[from] std::cell::BorrowMutError),
#[error("UTF8 Error")]
Utf8Error(#[from] std::string::FromUtf8Error),
#[error("serde_json error")]
SerdeJsonError(#[from] serde_json::Error),
#[error("IO error")]
IoError(#[from] std::io::Error),
#[error("curl error")]
CurlError(#[from] curl::Error),
#[error("unknown error")]
Unknown,
}
|