use std::fmt;
#[derive(Debug, Clone, PartialEq)]
pub enum StoreError {
Backend(String),
Codec(String),
}
impl fmt::Display for StoreError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
StoreError::Backend(msg) => write!(f, "backend: {msg}"),
StoreError::Codec(msg) => write!(f, "codec: {msg}"),
}
}
}
impl std::error::Error for StoreError {}