Skip to main content

cosm_tome/modules/bank/
error.rs

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