isr_cache/
error.rs

1/// Error type for the ISR cache.
2#[derive(thiserror::Error, Debug)]
3pub enum Error {
4    /// An I/O error occurred.
5    #[error(transparent)]
6    Io(#[from] std::io::Error),
7
8    /// An error occurred while parsing PDB symbols.
9    #[cfg(feature = "pdb")]
10    #[error(transparent)]
11    Pdb(#[from] isr_pdb::Error),
12
13    /// An error occurred while parsing DWARF symbols.
14    #[cfg(feature = "linux")]
15    #[error(transparent)]
16    Dwarf(#[from] isr_dwarf::Error),
17
18    /// An error occurred while downloading a PDB file.
19    #[cfg(feature = "pdb")]
20    #[error(transparent)]
21    PdbDownloader(#[from] isr_dl_pdb::Error),
22
23    /// An error occurred while downloading Linux symbols.
24    #[cfg(feature = "linux")]
25    #[error(transparent)]
26    LinuxDownloader(#[from] isr_dl_linux::Error),
27
28    /// An error occurred while parsing a Linux kernel banner.
29    #[cfg(feature = "linux")]
30    #[error("Invalid banner")]
31    InvalidBanner,
32}