gollum-ir 0.4.0

Intermediate Representation for the Gollum language
Documentation
//! Error types for PDDL ↔ IR conversion.

/// Errors produced during PDDL ↔ IR translation.
#[derive(Debug, Clone, thiserror::Error)]
pub enum PddlIrError {
    /// A PDDL feature that cannot be represented in the IR.
    #[error("unsupported PDDL feature: {feature}")]
    UnsupportedFeature {
        /// Description of the unsupported feature.
        feature: String,
    },

    /// The problem definition has no goal.
    #[error("missing goal in problem definition")]
    MissingGoal,

    /// An IR construct could not be mapped back to PDDL.
    #[error("cannot reconstruct PDDL: {reason}")]
    ReconstructionError {
        /// What went wrong.
        reason: String,
    },
}