reth_exex/wal/
error.rs
1use std::path::PathBuf;
4
5pub type WalResult<T> = Result<T, WalError>;
7
8#[derive(Debug, thiserror::Error)]
10pub enum WalError {
11 #[error(transparent)]
13 FsPathError(#[from] reth_fs_util::FsPathError),
14 #[error("failed to get {0} directory entry: {1}")]
16 DirEntry(PathBuf, std::io::Error),
17 #[error("failed to get metadata for file {0}: {1}")]
19 FileMetadata(u32, std::io::Error),
20 #[error("failed to parse file name: {0}")]
22 Parse(String),
23 #[error("notification {0} not found")]
25 FileNotFound(u32),
26 #[error("failed to decode notification {0} from {1}: {2}")]
28 Decode(u32, PathBuf, rmp_serde::decode::Error),
29}