mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-31 10:08:13 -05:00
24 lines
542 B
Rust
24 lines
542 B
Rust
use reth_db::DatabaseError;
|
|
use reth_interfaces::RethError;
|
|
use reth_primitives::PruneSegmentError;
|
|
use reth_provider::ProviderError;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum PrunerError {
|
|
#[error(transparent)]
|
|
PruneSegment(#[from] PruneSegmentError),
|
|
|
|
#[error("inconsistent data: {0}")]
|
|
InconsistentData(&'static str),
|
|
|
|
#[error(transparent)]
|
|
Interface(#[from] RethError),
|
|
|
|
#[error(transparent)]
|
|
Database(#[from] DatabaseError),
|
|
|
|
#[error(transparent)]
|
|
Provider(#[from] ProviderError),
|
|
}
|