Skip to content

Commit 6facc35

Browse files
Add new errors for server initialization.
1 parent 7389c21 commit 6facc35

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/defs/src/error.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use std::io;
12
#[derive(Debug)]
23
pub enum DbError {
34
ParseError,
@@ -7,3 +8,15 @@ pub enum DbError {
78
IndexError(String),
89
LockError,
910
}
11+
12+
#[derive(Debug)]
13+
pub enum ServerError{
14+
Bind(io::Error),
15+
Serve(io::Error),
16+
}
17+
18+
#[derive(Debug)]
19+
pub enum AppError {
20+
DbError(DbError),
21+
ServerError(ServerError),
22+
}

0 commit comments

Comments
 (0)