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

use crate::chain::error::ChainError;

#[derive(Error, Debug)]
pub enum AccountError {
    #[error("invalid account Address: {message:?}")]
    Address { message: String },

    #[error("cannot parse account ID from bytes: {message:?}")]
    AccountIdParse { message: String },

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