pub enum GremlinParseError {
Runtime(AntlrError),
Syntax {
count: usize,
tree: ParseTree,
},
}Expand description
An error produced while parsing Gremlin text.
Variants§
Runtime(AntlrError)
The lexer or parser failed outright (e.g. an unrecoverable error).
Syntax
The parser produced a tree but recovered from count syntax error(s);
the input is not valid Gremlin. The recovered tree is provided for
callers that want to inspect a best-effort result anyway.
Trait Implementations§
Source§impl Debug for GremlinParseError
impl Debug for GremlinParseError
Source§impl Display for GremlinParseError
impl Display for GremlinParseError
Source§impl Error for GremlinParseError
impl Error for GremlinParseError
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<AntlrError> for GremlinParseError
impl From<AntlrError> for GremlinParseError
Source§fn from(e: AntlrError) -> Self
fn from(e: AntlrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GremlinParseError
impl !Send for GremlinParseError
impl !Sync for GremlinParseError
impl !UnwindSafe for GremlinParseError
impl Freeze for GremlinParseError
impl Unpin for GremlinParseError
impl UnsafeUnpin for GremlinParseError
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