Enum juniper::ParseError
source · [−]pub enum ParseError<'a> {
UnexpectedToken(Token<'a>),
UnexpectedEndOfFile,
LexerError(LexerError),
ExpectedScalarError(&'static str),
}
Expand description
Error while parsing a GraphQL query
Variants
UnexpectedToken(Token<'a>)
An unexpected token occurred in the source
UnexpectedEndOfFile
The input source abruptly ended
LexerError(LexerError)
An error during tokenization occurred
ExpectedScalarError(&'static str)
A scalar of unexpected type occurred in the source
Trait Implementations
sourceimpl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
sourceimpl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
sourceimpl<'a> Error for ParseError<'a>
impl<'a> Error for ParseError<'a>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<'a> PartialEq<ParseError<'a>> for ParseError<'a>
impl<'a> PartialEq<ParseError<'a>> for ParseError<'a>
sourcefn eq(&self, other: &ParseError<'a>) -> bool
fn eq(&self, other: &ParseError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseError<'a>) -> bool
fn ne(&self, other: &ParseError<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for ParseError<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParseError<'a>
impl<'a> Send for ParseError<'a>
impl<'a> Sync for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnwindSafe for ParseError<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more