honeycomb_core/cmap/
error.rsuse stm::StmError;
pub type CMapResult<T> = Result<T, CMapError>;
#[derive(Debug, thiserror::Error)]
pub enum CMapError {
#[error("transaction failed")]
FailedTransaction(StmError),
#[error("attribute merge failed: {0}")]
FailedAttributeMerge(&'static str),
#[error("attribute split failed: {0}")]
FailedAttributeSplit(&'static str),
#[error("operation incompatible with map geometry: {0}")]
IncorrectGeometry(&'static str),
#[error("unknown attribute: {0}")]
UnknownAttribute(&'static str),
}
impl From<StmError> for CMapError {
fn from(value: StmError) -> Self {
Self::FailedTransaction(value)
}
}