//! Error types for the `mass-decomposition` crate.

/// Errors that can occur while decomposing a mass.
#[derive(Debug, thiserror::Error)]
pub enum DecompositionError {
    #[error("no formula satisfies the constraints")]
    NoCandidate,
    #[error("invalid input: {0}")]
    InvalidInput(String),
    #[error("decomposition failed: {0}")]
    Other(String),
}
