isr_dl_linux/error.rs
1/// Errors surfaced while resolving Linux kernel debug symbols.
2#[derive(thiserror::Error, Debug)]
3pub enum DownloaderError {
4 /// The supplied kernel banner string could not be parsed.
5 #[error("invalid banner")]
6 InvalidBanner,
7
8 /// Error originating from the Ubuntu downloader backend.
9 #[error(transparent)]
10 Ubuntu(#[from] crate::ubuntu::UbuntuError),
11}
12
13impl From<DownloaderError> for isr_dl::Error {
14 fn from(value: DownloaderError) -> Self {
15 isr_dl::Error::Other(Box::new(value))
16 }
17}