pub enum ParserError {
UnexpectedToken {
line: u64,
column: u64,
expected: String,
found: String,
},
ExpectedToken {
line: u64,
column: u64,
expected: String,
found: String,
},
UnterminatedString {
line: u64,
column: u64,
},
InvalidNumber {
line: u64,
column: u64,
value: String,
},
InvalidVector {
line: u64,
column: u64,
},
RecursionLimitExceeded {
depth: usize,
},
}Expand description
Parser errors for the Alopex SQL dialect.
Variants§
UnexpectedToken
ALOPEX-P001: An unexpected token was encountered.
ExpectedToken
ALOPEX-P002: A required token was missing.
UnterminatedString
ALOPEX-P003: String literal was not closed.
InvalidNumber
ALOPEX-P004: Number literal is malformed.
InvalidVector
ALOPEX-P005: Vector literal is malformed.
RecursionLimitExceeded
ALOPEX-P006: Parser exceeded maximum recursion depth.
Trait Implementations§
Source§impl Clone for ParserError
impl Clone for ParserError
Source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
1.30.0 · 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<ParserError> for SqlError
impl From<ParserError> for SqlError
Source§fn from(value: ParserError) -> Self
fn from(value: ParserError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParserError
impl PartialEq for ParserError
impl Eq for ParserError
impl StructuralPartialEq for ParserError
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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