mod fmt;
mod parse;
mod run;
mod traced;
use core::error::Error;
pub use parse::{LeftModifierKind, ParseError, ParseErrorKind, PayloadKind, RightActionKind};
pub use run::{InputColumn, InputError, LimitError, RunError, StateLimitContext, StateSizeError};
pub use traced::TracedRunError;
#[derive(Debug, PartialEq, Eq)]
pub enum AebError {
Parse(ParseError),
Run(RunError),
}
impl Error for AebError {
fn source(&self) -> Option<&(dyn Error + 'static)> {
match self {
Self::Parse(error) => Some(error),
Self::Run(error) => Some(error),
}
}
}
impl From<ParseError> for AebError {
fn from(value: ParseError) -> Self {
Self::Parse(value)
}
}
impl From<RunError> for AebError {
fn from(value: RunError) -> Self {
Self::Run(value)
}
}