pharmsol 0.27.1

Rust library for solving analytic and ode-defined pharmacometric models.
Documentation
//! NCA error types

use thiserror::Error;

/// Errors that can occur during NCA analysis
#[derive(Error, Debug, Clone)]
pub enum NCAError {
    /// An error from observation data processing (BLQ filtering, profile construction)
    #[error(transparent)]
    Observation(#[from] crate::data::observation_error::ObservationError),

    /// Lambda-z estimation failed
    #[error("Lambda-z estimation failed: {reason}")]
    LambdaZFailed { reason: String },

    /// Invalid parameter value
    #[error("Invalid parameter: {param} = {value}")]
    InvalidParameter { param: String, value: String },
}