Skip to main content

cached_context/
error.rs

1//! Error types module
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum Error {
7    #[error("file not found: {0}")]
8    FileNotFound(String),
9
10    #[error("IO error: {0}")]
11    Io(#[from] std::io::Error),
12
13    #[error("serialization error: {0}")]
14    Serialization(#[from] serde_json::Error),
15
16    #[error("SQLite error: {0}")]
17    Sqlite(#[from] rusqlite::Error),
18
19    #[error("{0}")]
20    Other(String),
21}