cosm_utils/modules/auth/error.rs
1use thiserror::Error;
2
3use crate::chain::error::ChainError;
4
5#[derive(Error, Debug)]
6pub enum AccountError {
7 #[error("invalid account Address: {message:?}")]
8 Address { message: String },
9
10 #[error("cannot parse account ID from bytes: {message:?}")]
11 AccountIdParse { message: String },
12
13 #[error(transparent)]
14 ChainError(#[from] ChainError),
15}