Enum juniper::parser::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§
source§impl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
source§impl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
source§impl<'a> Error for ParseError<'a>
impl<'a> Error for ParseError<'a>
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<'a> PartialEq<ParseError<'a>> for ParseError<'a>
impl<'a> PartialEq<ParseError<'a>> for ParseError<'a>
source§fn 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 ==
.