use std::io;
#[derive(Debug, thiserror::Error)]
pub enum WalError {
#[error("io error: {0}")]
Io(#[from] io::Error),
#[error("entry too large: {size} bytes, max is {max}")]
EntryTooLarge { size: usize, max: usize },
#[error("wal corrupt: {reason}")]
Corrupt { reason: String },
}