diff --git a/src/error.rs b/src/error.rs index ee760de..c50a3b5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,4 +9,10 @@ pub type Result = result::Result; pub enum Error { #[error("command from client not recognized")] CommandNotFound, + #[error("parsing JSON->Event failed")] + EventParseFailed, + #[error("parsing JSON->Req failed")] + ReqParseFailed, + #[error("parsing JSON->Close failed")] + CloseParseFailed, }