dysql_tpl/simple/
simple_error.rs

1use std::{error::Error, fmt::{Display, self}};
2
3///
4pub type SimpleError = Box<dyn Error + Send + Sync>;
5
6#[derive(Debug)]
7pub struct SimpleInnerError(pub String);
8
9impl Error for SimpleInnerError {
10}
11
12impl Display for SimpleInnerError {
13    fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
14        write!(fmt, "apply dto error: {:?}", self.0)
15    }
16}