use thiserror::Error;

#[derive(Error, Debug, Clone)]
pub enum EngineError {
    #[error("disruptor queue backpressure")]
    QueueBackpressure,
    #[error("journal failure: {0}")]
    JournalFailure(String),
    #[error("disruptor stopped")]
    DisruptorStopped,
    #[error("durability timeout")]
    DurabilityTimeout,
}
