use thiserror::Error;
#[derive(Debug, Error)]
pub enum ReplayError {
#[error("stream record not found: {0}")]
NotFound(String),
#[error("invalid replay cursor: {0}")]
InvalidCursor(String),
#[error("stream operation failed: {0}")]
Failed(String),
}
pub type ReplayResult<T> = Result<T, ReplayError>;