Add ApplicationError type
This commit is contained in:
parent
4d83b7c63f
commit
e19f7117e6
1 changed files with 14 additions and 0 deletions
14
src/error.rs
Normal file
14
src/error.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
use std::error::Error;
|
||||||
|
|
||||||
|
struct ApplicationError {
|
||||||
|
str: String
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Error for ApplicationError {
|
||||||
|
|
||||||
|
fn description(&self) -> &str {
|
||||||
|
}
|
||||||
|
|
||||||
|
fn cause(&self) -> Option<&Error> {
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue