1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

use crate::{chain::error::ChainError, modules::auth::error::AccountError};

#[derive(Error, Debug)]
pub enum BankError {
    #[error("Cannot send 0 amount of a token")]
    EmptyAmount,

    #[error(transparent)]
    Tendermint(#[from] tendermint_rpc::Error),

    #[error(transparent)]
    AccountError(#[from] AccountError),

    #[error(transparent)]
    ChainError(#[from] ChainError),
}