isr_dl_linux/ubuntu/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error(transparent)]
    Http(#[from] reqwest::Error),

    #[error(transparent)]
    InvalidUrl(#[from] url::ParseError),

    #[error(transparent)]
    DebError(#[from] debpkg::Error),

    #[error("deb entry not found")]
    DebEntryNotFound,

    #[error("Invalid banner")]
    InvalidBanner,

    #[error("URL does not contain filename")]
    UrlDoesNotContainFilename,

    #[error("Invalid options")]
    InvalidOptions,

    #[error("Missing filename")]
    PackageMissingFilename,

    #[error("Multiple candidates")]
    PackageMultipleCandidates,

    #[error("Package not found")]
    PackageNotFound,
}