Enum sqlite3_parser::lexer::sql::Error
source · #[non_exhaustive]pub enum Error {
Io(Error),
UnrecognizedToken(Option<(u64, usize)>),
UnterminatedLiteral(Option<(u64, usize)>),
UnterminatedBracket(Option<(u64, usize)>),
UnterminatedBlockComment(Option<(u64, usize)>),
BadVariableName(Option<(u64, usize)>),
BadNumber(Option<(u64, usize)>),
ExpectedEqualsSign(Option<(u64, usize)>),
MalformedBlobLiteral(Option<(u64, usize)>),
MalformedHexInteger(Option<(u64, usize)>),
ParserError(ParserError, Option<(u64, usize)>),
}
Expand description
SQL lexer and parser errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
I/O Error
UnrecognizedToken(Option<(u64, usize)>)
Lexer error
UnterminatedLiteral(Option<(u64, usize)>)
Missing quote or double-quote or backtick
UnterminatedBracket(Option<(u64, usize)>)
Missing ]
UnterminatedBlockComment(Option<(u64, usize)>)
Missing */
BadVariableName(Option<(u64, usize)>)
Invalid parameter name
BadNumber(Option<(u64, usize)>)
Invalid number format
ExpectedEqualsSign(Option<(u64, usize)>)
Invalid or missing sign after !
MalformedBlobLiteral(Option<(u64, usize)>)
BLOB literals are string literals containing hexadecimal data and preceded by a single “x” or “X” character.
MalformedHexInteger(Option<(u64, usize)>)
Hexadecimal integer literals follow the C-language notation of “0x” or “0X” followed by hexadecimal digits.
ParserError(ParserError, Option<(u64, usize)>)
Grammar error
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Error
impl From<ParserError> for Error
source§fn from(err: ParserError) -> Error
fn from(err: ParserError) -> Error
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