scientific_workflow/error.rs
1//! Complete-workflow error composition.
2//!
3//! The crate root exposes the ordinary facade error; detailed Study and Runtime
4//! errors remain owned by their respective subsystem modules.
5
6use thiserror::Error;
7
8use crate::runtime::RuntimeError;
9use crate::study::StudyError;
10
11/// A failure while loading, preflighting, or executing one project.
12#[derive(Debug, Error)]
13#[non_exhaustive]
14pub enum WorkflowError {
15 /// Declarative study compilation failed before output creation.
16 #[error(transparent)]
17 Study(#[from] StudyError),
18 /// Active execution failed after a valid study was available.
19 #[error(transparent)]
20 Runtime(#[from] RuntimeError),
21}