Skip to main content

isr_dl/
error.rs

1/// Errors surfaced by ISR downloaders.
2#[derive(thiserror::Error, Debug)]
3pub enum Error {
4    /// I/O error while reading or writing a cached file.
5    #[error(transparent)]
6    Io(#[from] std::io::Error),
7
8    /// The requested artifact was not found on the server.
9    #[error("artifact not found")]
10    ArtifactNotFound,
11
12    /// Downloader-specific error not modeled by the variants above.
13    #[error(transparent)]
14    Other(Box<dyn std::error::Error + Send + Sync>),
15}