reth_era/e2s/error.rs
1//! Error handling for e2s files operations
2
3use std::io;
4use thiserror::Error;
5
6/// Error types for e2s file operations
7#[derive(Error, Debug)]
8pub enum E2sError {
9 /// IO error during file operations
10 #[error("IO error: {0}")]
11 Io(#[from] io::Error),
12
13 /// Error during SSZ encoding/decoding
14 #[error("SSZ error: {0}")]
15 Ssz(String),
16
17 /// Reserved field in header not zero
18 #[error("Reserved field in header not zero")]
19 ReservedNotZero,
20
21 /// Error during snappy compression
22 #[error("Snappy compression error: {0}")]
23 SnappyCompression(String),
24
25 /// Error during snappy decompression
26 #[error("Snappy decompression error: {0}")]
27 SnappyDecompression(String),
28
29 /// Error during RLP encoding/decoding
30 #[error("RLP error: {0}")]
31 Rlp(String),
32}