Skip to main content

snowfinch/
error.rs

1/// Errors returned by [`snowfinch`](crate).
2#[derive(Debug, thiserror::Error)]
3pub enum Error {
4    /// A hexadecimal value could not be decoded.
5    #[error(transparent)]
6    FromHex(#[from] const_hex::FromHexError),
7
8    /// An error returned by a user-provided backend or store.
9    #[error(transparent)]
10    Other(Box<dyn std::error::Error + Send + Sync + 'static>),
11}