cosm_tome/modules/tendermint/error.rs
1use thiserror::Error;
2
3use crate::{chain::error::ChainError, modules::auth::error::AccountError};
4
5#[derive(Error, Debug)]
6pub enum TendermintError {
7 #[error("block missing from tendermint response")]
8 MissingBlock,
9
10 #[error("blockId missing from tendermint response")]
11 MissingBlockId,
12
13 #[error(transparent)]
14 AccountError(#[from] AccountError),
15
16 #[error(transparent)]
17 ChainError(#[from] ChainError),
18}