scientific_workflow/error/workflow.rs
1//! Complete-workflow error type.
2
3use thiserror::Error;
4
5use crate::runtime::advanced::RuntimeError;
6use crate::study::advanced::StudyError;
7
8/// A failure while loading, preflighting, or executing one project.
9#[derive(Debug, Error)]
10#[non_exhaustive]
11pub enum WorkflowError {
12 /// Declarative study compilation failed before output creation.
13 #[error(transparent)]
14 Study(#[from] StudyError),
15 /// Active execution failed after a valid study was available.
16 #[error(transparent)]
17 Runtime(#[from] RuntimeError),
18}