blob: 3ec6b6b424059c78fe46381fdf1a506c1a584b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[derive(Debug)]
pub struct ParsingException {
pub message: String,
pub code: i64,
}
impl std::fmt::Display for ParsingException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.message)
}
}
impl std::error::Error for ParsingException {}
|