2021-08-08 21:40:08 +00:00
|
|
|
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,
|
2021-11-16 21:10:04 +00:00
|
|
|
#[error("Undefined schema definition name: {0}")]
|
|
|
|
UndefinedSchemaDefinitionName(String),
|
2021-08-08 21:40:08 +00:00
|
|
|
#[error(transparent)]
|
|
|
|
RegexError(#[from] regex::Error),
|
|
|
|
}
|