arb_storage_errors/
lib.rs

1//! Error types for the arb-storage layer.
2//!
3//! This crate intentionally mirrors `reth-storage-errors`: a thin leaf-level
4//! crate that erases the underlying `Database::Error` into a concrete
5//! [`DatabaseError`] so downstream consumers do not have to be generic over
6//! it. The wider [`StorageError`] adds storage-layout-specific failure modes
7//! (decode overflow, invalid layout, broken invariant) on top.
8
9#![cfg_attr(not(test), warn(unused_crate_dependencies))]
10#![cfg_attr(not(feature = "std"), no_std)]
11
12extern crate alloc;
13
14mod any;
15mod db;
16mod storage;
17
18pub use any::AnyError;
19pub use db::{DatabaseError, DatabaseErrorInfo};
20pub use storage::StorageError;