chronix-analytics 0.4.0

Analytics engine for Chronix — preprocessing, forecasting, anomaly detection, multivariate analysis, model lifecycle, and streaming analytics on a SIMD/rayon CPU compute core
Documentation
//! Error types for the lifecycle management system.

use thiserror::Error;

/// Errors from lifecycle management operations.
#[derive(Debug, Error)]
pub enum LifecycleError {
    /// Model or version not found.
    #[error("Not found: {0}")]
    NotFound(String),

    /// Invalid configuration or parameter.
    #[error("Invalid configuration: {0}")]
    InvalidConfig(String),

    /// A/B test evaluation error.
    #[error("A/B test error: {0}")]
    ABTest(String),

    /// Drift detection error.
    #[error("Drift detection error: {0}")]
    Drift(String),

    /// Serialization or persistence error.
    #[error("Persistence error: {0}")]
    Persistence(String),
}

/// Result alias for lifecycle operations.
pub type Result<T> = std::result::Result<T, LifecycleError>;