// SPDX-License-Identifier: MIT OR Apache-2.0
// Copyright (c) 2025 lacklustr@protonmail.com https://github.com/eadf

#[derive(Debug)]
/// The error type thrown when an error is detected, typically when a NaN or infinite vertex value
/// is detected.
pub struct RemeshError(pub String);

impl std::fmt::Display for RemeshError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "Remesh error occurred: {}", self.0)
    }
}
impl std::error::Error for RemeshError {}
