preserves_path/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CompilationError {
5 #[error(transparent)]
6 ReadError(#[from] preserves::Error),
7 #[error("Cannot mix binary operators")]
8 MixedOperators,
9 #[error("Invalid step")]
10 InvalidStep,
11 #[error("Undefined schema definition name: {0}")]
12 UndefinedSchemaDefinitionName(String),
13 #[error(transparent)]
14 RegexError(#[from] regex::Error),
15}