isr_dl_linux/ubuntu/
error.rs

1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3    #[error(transparent)]
4    IoError(#[from] std::io::Error),
5
6    #[error(transparent)]
7    Http(#[from] reqwest::Error),
8
9    #[error(transparent)]
10    InvalidUrl(#[from] url::ParseError),
11
12    #[error(transparent)]
13    DebError(#[from] debpkg::Error),
14
15    #[error("deb entry not found")]
16    DebEntryNotFound,
17
18    #[error("Invalid banner")]
19    InvalidBanner,
20
21    #[error("URL does not contain filename")]
22    UrlDoesNotContainFilename,
23
24    #[error("Invalid options")]
25    InvalidOptions,
26
27    #[error("Missing filename")]
28    PackageMissingFilename,
29
30    #[error("Multiple candidates")]
31    PackageMultipleCandidates,
32
33    #[error("Package not found")]
34    PackageNotFound,
35}