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