pub enum SqlglotError {
TokenizerError {
message: String,
position: usize,
},
ParserError {
message: String,
},
UnexpectedToken {
token: Token,
},
UnsupportedDialectFeature(String),
Internal(String),
}Expand description
Errors that may occur during SQL parsing, generation, or optimization.
Variants§
TokenizerError
An error occurred during tokenization.
ParserError
An error occurred during parsing.
UnexpectedToken
An unexpected token was encountered.
UnsupportedDialectFeature(String)
An unsupported feature was encountered for the target dialect.
Internal(String)
A generic internal error.
Trait Implementations§
Source§impl Debug for SqlglotError
impl Debug for SqlglotError
Source§impl Display for SqlglotError
impl Display for SqlglotError
Source§impl Error for SqlglotError
impl Error for SqlglotError
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<LineageError> for SqlglotError
impl From<LineageError> for SqlglotError
Source§fn from(e: LineageError) -> Self
fn from(e: LineageError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for SqlglotError
impl From<SchemaError> for SqlglotError
Source§fn from(e: SchemaError) -> Self
fn from(e: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SqlglotError
impl RefUnwindSafe for SqlglotError
impl Send for SqlglotError
impl Sync for SqlglotError
impl Unpin for SqlglotError
impl UnsafeUnpin for SqlglotError
impl UnwindSafe for SqlglotError
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