use thiserror::Error;
pub type Result<T> = std::result::Result<T, LocalError>;
#[derive(Debug, Error)]
pub enum LocalError {
#[error("Failed to serialize value: {0}")]
Serialization(String),
#[error("Failed to deserialize value: {0}")]
Deserialization(String),
#[error("Local cache already initialized")]
AlreadyInitialized,
}