We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7389c21 commit 6facc35Copy full SHA for 6facc35
crates/defs/src/error.rs
@@ -1,3 +1,4 @@
1
+use std::io;
2
#[derive(Debug)]
3
pub enum DbError {
4
ParseError,
@@ -7,3 +8,15 @@ pub enum DbError {
7
8
IndexError(String),
9
LockError,
10
}
11
+
12
+#[derive(Debug)]
13
+pub enum ServerError{
14
+ Bind(io::Error),
15
+ Serve(io::Error),
16
+}
17
18
19
+pub enum AppError {
20
+ DbError(DbError),
21
+ ServerError(ServerError),
22
0 commit comments