pub enum Error {
Lexer(LexerError),
Parser(ParserError),
Analysis(AnalysisError),
}Expand description
Top-level error type for the EventQL parser.
This enum wraps both lexer and parser errors, providing a unified error type for the entire parsing pipeline.
Variants§
Lexer(LexerError)
Error during lexical analysis (tokenization).
Parser(ParserError)
Error during syntactic analysis (parsing).
Analysis(AnalysisError)
Error during static analysis.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AnalysisError> for Error
impl From<AnalysisError> for Error
Source§fn from(value: AnalysisError) -> Self
fn from(value: AnalysisError) -> Self
Converts to this type from the input type.
Source§impl From<LexerError> for Error
impl From<LexerError> for Error
Source§fn from(value: LexerError) -> Self
fn from(value: LexerError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for Error
impl From<ParserError> for Error
Source§fn from(value: ParserError) -> Self
fn from(value: ParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more