2023-05-06 17:20:33 +00:00
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
|
|
#[error("No user info found")]
|
|
|
|
pub struct NoUserInfo;
|
|
|
|
|
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
|
|
#[error("Handler was already used")]
|
|
|
|
pub struct HandlerUsed;
|
2023-07-25 14:44:12 +00:00
|
|
|
|
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
|
|
pub enum InvalidCommand {
|
|
|
|
#[error("Invalid params")]
|
|
|
|
InvalidParams,
|
|
|
|
#[error("Not enough bytes in the name's hash")]
|
2023-07-25 21:52:12 +00:00
|
|
|
InvalidOutputLength,
|
2023-07-25 14:44:12 +00:00
|
|
|
#[error("Error decoding the values: {0}")]
|
2023-07-25 21:52:12 +00:00
|
|
|
NameDecodingError(#[from] base64::DecodeError),
|
2023-07-25 14:44:12 +00:00
|
|
|
}
|