pub enum ParseErrorKind {
Syntax,
Tokenizer,
UnexpectedToken,
Semantic,
ExpressionTooDeep {
max: u32,
},
RecursionLimit,
}Variants§
Syntax
Tokenizer
A tokenizer (lexer) error — an unterminated/unrecognized/malformed token.
Its message is already SQLite’s stock form (unrecognized token: "X")
and must be surfaced verbatim, with NO SQL error at offset N: prefix.
bd-parser-syntax-error-format-6w6kp (Part A).
UnexpectedToken
A generic “unexpected token” parse error. The connection boundary renders
this as stock near "<lexeme>": syntax error, or incomplete input when
the offending token is end-of-input (empty span at the tail).
bd-parser-syntax-error-format-6w6kp (Part B).
Semantic
A semantic parse-error with a fixed, stock-matching message (e.g.
a NATURAL join may not have an ON or USING clause). The connection
boundary surfaces message VERBATIM, with NO SQL error at offset N:
prefix. bd-parser-syntax-error-format-6w6kp (Part C).
ExpressionTooDeep
RecursionLimit
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.