1#[derive(thiserror::Error, Debug)]
3pub enum DownloaderError {
4 #[error(transparent)]
6 Io(#[from] std::io::Error),
7
8 #[error(transparent)]
10 Http(#[from] reqwest::Error),
11
12 #[error(transparent)]
14 Url(#[from] url::ParseError),
15
16 #[error(transparent)]
18 Object(#[from] object::Error),
19
20 #[error("unsupported file kind: {0:?}")]
22 UnsupportedFileKind(object::FileKind),
23
24 #[error("CodeView info not found")]
27 MissingCodeView,
28}
29
30impl From<DownloaderError> for isr_dl::Error {
31 fn from(value: DownloaderError) -> Self {
32 isr_dl::Error::Other(Box::new(value))
33 }
34}