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