rho_core/error.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub enum Error {
5 Generic(String),
6}
7
8impl std::fmt::Display for Error {
9 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10 match self {
11 Error::Generic(msg) => write!(f, "{}", msg),
12 }
13 }
14}
15
16impl std::error::Error for Error {}