Skip to main content

sidebyside_core/
error.rs

1//! Error types for sidebyside-core
2
3use thiserror::Error;
4
5/// Core error type for sidebyside-core
6#[derive(Error, Debug)]
7pub enum CoreError {
8    /// Invalid ID format
9    #[error("Invalid ID: {0}")]
10    InvalidId(String),
11
12    /// Plan validation failed
13    #[error("Plan validation failed: {0}")]
14    PlanValidation(String),
15
16    /// Step not found in plan
17    #[error("Step not found: {0}")]
18    StepNotFound(String),
19
20    /// Dependency cycle detected
21    #[error("Dependency cycle detected: {0}")]
22    DependencyCycle(String),
23
24    /// Serialization error
25    #[error("Serialization error: {0}")]
26    Serialization(#[from] serde_json::Error),
27}