cosm_utils/modules/bank/error.rs
1use thiserror::Error;
2
3use crate::{chain::error::ChainError, modules::auth::error::AccountError};
4
5#[derive(Error, Debug)]
6pub enum BankError {
7 #[error("Cannot send 0 amount of a token")]
8 EmptyAmount,
9
10 #[error(transparent)]
11 Tendermint(#[from] tendermint_rpc::Error),
12
13 #[error(transparent)]
14 AccountError(#[from] AccountError),
15
16 #[error(transparent)]
17 ChainError(#[from] ChainError),
18}