sidebyside-core 0.1.0

Core domain types for Sidebyside SDK
Documentation
//! Error types for sidebyside-core

use thiserror::Error;

/// Core error type for sidebyside-core
#[derive(Error, Debug)]
pub enum CoreError {
    /// Invalid ID format
    #[error("Invalid ID: {0}")]
    InvalidId(String),

    /// Plan validation failed
    #[error("Plan validation failed: {0}")]
    PlanValidation(String),

    /// Step not found in plan
    #[error("Step not found: {0}")]
    StepNotFound(String),

    /// Dependency cycle detected
    #[error("Dependency cycle detected: {0}")]
    DependencyCycle(String),

    /// Serialization error
    #[error("Serialization error: {0}")]
    Serialization(#[from] serde_json::Error),
}