blob: eac67c7109c58b39d7b729c35197b3c5e1db0eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
use std::error::Error;
#[derive(Debug)]
pub enum WebhoggException {
}
impl Error for WebhoggException {
fn description(&self) -> &str {
"webhogg exception"
}
fn cause(&self) -> Option<&dyn Error> {
self.source()
}
fn source(&self) -> Option<&(dyn Error + 'static)> {
None
}
}
impl std::fmt::Display for WebhoggException {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "WebhoggException: {}", self.description())
}
}
|