#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum EventLogError {
#[error("event log journal error: {0}")]
Journal(#[from] commonware_storage::journal::Error),
#[error("event log checkpoint error: {0}")]
Checkpoint(#[from] commonware_storage::metadata::Error),
#[error("event log integrity error: {0}")]
Integrity(#[from] crate::IntegrityError),
#[error(
"repair refused: a trusted signed root contradicts the content it covers, so re-rooting \
would sign the contradiction — preserve this partition and investigate (see \
docs/operations/eventlog-disaster-recovery.md)"
)]
RepairRefused,
}