1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum CompilationError {
    #[error(transparent)]
    IoError(#[from] io::Error),
    #[error("Cannot mix binary operators")]
    MixedOperators,
    #[error("Invalid step")]
    InvalidStep,
    #[error("Undefined schema definition name: {0}")]
    UndefinedSchemaDefinitionName(String),
    #[error(transparent)]
    RegexError(#[from] regex::Error),
}