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