use thiserror::Error;
#[derive(Error, Debug)]
pub enum OpsError {
#[error("Serialize error")]
SerializeFailed,
#[error("Failed to borrow process status")]
BorrowingStatusFailed,
#[error("Failed to handle")]
HandlingFailed,
#[error(transparent)]
IOError(#[from] std::io::Error),
#[error("unknown data store error")]
Unknown,
}
pub type OpsResult<T> = Result<T, OpsError>;