sled_tables/
error.rs

1use thiserror::Error;
2use serde_cbor::Error as CError;
3use sled::Error as SError;
4
5#[derive(Error, Debug)]
6pub enum Error {
7    #[error(transparent)]
8    CborError(#[from] CError),
9    #[error(transparent)]
10    SledError(#[from] SError),
11    #[error(transparent)]
12    PropagatedError(#[from] Box<dyn std::error::Error>),
13    #[error("no data in the DB")]
14    NoDataError,
15}