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