use lyon::extra::parser::ParseError;
use thiserror::Error;
pub type Result<T, E = PathError> = std::result::Result<T, E>;
#[derive(Error, Debug)]
pub enum PathError {
#[error("Failed to parse SVG path data: {0}")]
Parse(#[from] ParseError),
#[error("Failed to fit curve")]
FitCurve,
#[error("Failed to clean path")]
CleanPath,
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
}