polylabel/
errors.rs

1//! Errors that can occur when determining an optimum label position
2
3use thiserror::Error;
4
5/// Possible Polylabel errors
6#[derive(Error, Debug, PartialEq, Eq)]
7#[error("{0}")]
8pub enum PolylabelError {
9    #[error("Couldn't calculate a centroid for the input Polygon")]
10    CentroidCalculation,
11    #[error("Couldn't calculate a bounding box for the input Polygon")]
12    RectCalculation,
13}