Files
reth/crates/interfaces/src/error.rs
Matthias Seitz 5844ce10f3 feat: add evm env provider (#1525)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2023-02-24 11:21:18 +01:00

23 lines
627 B
Rust

/// Result alias for `Error`
pub type Result<T> = std::result::Result<T, Error>;
/// Core error variants possible when interacting with the blockchain
#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Execution(#[from] crate::executor::Error),
#[error(transparent)]
Consensus(#[from] crate::consensus::Error),
#[error(transparent)]
Database(#[from] crate::db::Error),
#[error(transparent)]
Provider(#[from] crate::provider::ProviderError),
#[error(transparent)]
Network(#[from] reth_network_api::NetworkError),
}