use std::error::Error;
use std::fmt::Display;
#[derive(Debug, PartialEq, Eq)]
#[non_exhaustive]
pub enum JasonError {
Io,
Index,
InvalidKey,
JsonError,
ReplicaError,
Unknown,
}
impl Display for JasonError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
impl Error for JasonError {}