Skip to main content

noether_engine/
error.rs

1use crate::checker::GraphTypeError;
2use crate::executor::ExecutionError;
3
4#[derive(Debug, thiserror::Error)]
5pub enum EngineError {
6    #[error("parse error: {0}")]
7    Parse(#[from] serde_json::Error),
8    #[error("type errors in composition graph")]
9    TypeCheck(Vec<GraphTypeError>),
10    #[error("execution error: {0}")]
11    Execution(#[from] ExecutionError),
12}