Updated generic handler to handle the lack of the text of the message

This commit is contained in:
2023-05-15 18:14:21 +03:00
parent 2f96d84e34
commit a2477424a5
6 changed files with 18 additions and 25 deletions

View File

@@ -2,10 +2,6 @@
#[error("No user info found")]
pub struct NoUserInfo;
#[derive(thiserror::Error, Debug)]
#[error("Message text not found")]
pub struct NoMessageText;
#[derive(thiserror::Error, Debug)]
#[error("Handler was already used")]
pub struct HandlerUsed;