use thiserror::Error;
#[derive(Debug, Error)]
pub enum PartitionError {
#[error("Owner lookup failed for vertex {0}")]
VertexNotFound(usize),
#[error("PartitionMap missing part for vertex {0}")]
MissingPartition(usize),
#[error("Empty partition map: no parts available")]
NoParts,
#[error("Partitioner error: {0}")]
Other(String),
}