Files
reth/crates/snapshot/src/error.rs
2023-10-25 20:12:03 +00:00

22 lines
506 B
Rust

use reth_db::DatabaseError;
use reth_interfaces::RethError;
use reth_provider::ProviderError;
use thiserror::Error;
/// Error returned by [crate::Snapshotter::run]
#[derive(Error, Debug)]
#[allow(missing_docs)]
pub enum SnapshotterError {
#[error("inconsistent data: {0}")]
InconsistentData(&'static str),
#[error(transparent)]
Interface(#[from] RethError),
#[error(transparent)]
Database(#[from] DatabaseError),
#[error(transparent)]
Provider(#[from] ProviderError),
}