Files
reth/crates/interfaces/src/error.rs
rakita 699db03187 feat(db): db error handling and Provider scaffolding (#154)
* feat(db): db error handling and Provider scaffolding
* remove one map_err
* fix after merge
2022-11-03 17:00:58 +01:00

17 lines
466 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),
}