From 5224b9159ee968aa48c8666009536a800ca0e926 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Tue, 23 Nov 2021 10:46:47 -0600 Subject: [PATCH] Structure for parsing types --- src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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, }