use std::fmt;
pub type Result<T, E = SecelError> = std::result::Result<T, E>;
#[derive(Debug, PartialEq, Eq)]
pub struct SecelError(String);
impl fmt::Display for SecelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
impl SecelError {
pub fn new(message: &str) -> Self {
Self(message.to_string())
}
}