Skip to main content

pyohwa_server/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ServerError {
5    #[error("build error: {0}")]
6    Build(#[from] pyohwa_core::BuildError),
7
8    #[error("io error: {0}")]
9    Io(#[from] std::io::Error),
10
11    #[error("server error: {0}")]
12    Server(String),
13
14    #[error("watcher error: {0}")]
15    Watcher(String),
16}