scientific-workflow 0.17.0

Configuration-driven scientific tasks, typed state, and durable recordings
Documentation
//! Complete-workflow error composition.
//!
//! The crate root exposes the ordinary facade error; detailed StudyPlan and Runtime
//! errors remain owned by their respective subsystem modules.

use thiserror::Error;

use crate::runtime::RuntimeError;
use crate::study::StudyError;

/// A failure while loading, preflighting, or executing one project.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum WorkflowError {
    /// Storage, process, socket or local workspace operation failed.
    #[error(transparent)]
    Io(#[from] std::io::Error),
    /// A durable record could not be encoded or decoded.
    #[error(transparent)]
    Json(#[from] serde_json::Error),
    /// Declarative study compilation failed before output creation.
    #[error(transparent)]
    StudyPlan(#[from] StudyError),
    /// Active execution failed after a valid study was available.
    #[error(transparent)]
    Runtime(#[from] RuntimeError),
}