sos_debug_snapshot/
error.rs

1use thiserror::Error;
2
3/// Errors generated by the library.
4#[derive(Debug, Error)]
5pub enum Error {
6    /// Errors generated by the IO module.
7    #[error(transparent)]
8    Io(#[from] std::io::Error),
9
10    /// Errors generated by the JSON library.
11    #[error(transparent)]
12    Json(#[from] serde_json::Error),
13
14    /// Errors generated by the backend library.
15    #[error(transparent)]
16    Backend(#[from] sos_backend::Error),
17
18    /// Errors generated by the client storage library.
19    #[error(transparent)]
20    ClientStorage(#[from] sos_client_storage::Error),
21
22    /// Errors generated by the archive library.
23    #[error(transparent)]
24    Archive(#[from] sos_archive::Error),
25}