use std::num::TryFromIntError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum CompilerError {
#[error("Max automaton size was exceeded. Query is too complex.")]
QueryTooComplex(#[source] Option<TryFromIntError>),
#[error(transparent)]
NotSupported(#[from] crate::error::UnsupportedFeatureError),
}