Skip to main content

capp_cache/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CacheError {
5    #[error("Cache entry not found: {0}")]
6    NotFound(String),
7
8    #[error("Serialization error: {0}")]
9    Serialization(String),
10
11    #[error("Deserialization error: {0}")]
12    Deserialization(String),
13
14    #[error("I/O error: {0}")]
15    Io(#[from] std::io::Error),
16
17    #[error("Path error: {0}")]
18    Path(String),
19
20    #[error("Fjall error: {0}")]
21    Fjall(#[from] fjall::Error),
22}