pass_manager/src/errors.rs

18 lines
476 B
Rust
Raw Normal View History

#[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")]
InvalidOutputLength,
2023-07-25 14:44:12 +00:00
#[error("Error decoding the values: {0}")]
NameDecodingError(#[from] base64::DecodeError),
2023-07-25 14:44:12 +00:00
}