use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("shape mismatch: expected {expected}, got {actual}")]
ShapeMismatch {
expected: String,
actual: String,
},
#[error("invalid geometry: {0}")]
InvalidGeometry(String),
#[error("assignment solver failed: {0}")]
AssignmentFailed(String),
#[error("annotation backend error: {0}")]
Backend(String),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("parse error: {0}")]
Parse(String),
}
pub type Result<T> = std::result::Result<T, Error>;