Enum juniper::GraphQLError
source · pub enum GraphQLError<'a> {
ParseError(Spanning<ParseError<'a>>),
ValidationError(Vec<RuleError>),
NoOperationProvided,
MultipleOperationsProvided,
UnknownOperationName,
IsSubscription,
NotSubscription,
}
Expand description
An error that prevented query execution
Variants§
ParseError(Spanning<ParseError<'a>>)
ValidationError(Vec<RuleError>)
NoOperationProvided
MultipleOperationsProvided
UnknownOperationName
IsSubscription
NotSubscription
Trait Implementations§
source§impl<'a> Debug for GraphQLError<'a>
impl<'a> Debug for GraphQLError<'a>
source§impl<'a> Display for GraphQLError<'a>
impl<'a> Display for GraphQLError<'a>
source§impl<'a> Error for GraphQLError<'a>
impl<'a> Error for GraphQLError<'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> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
impl<'a> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
source§fn from(f: Spanning<ParseError<'a>>) -> GraphQLError<'a>
fn from(f: Spanning<ParseError<'a>>) -> GraphQLError<'a>
Converts to this type from the input type.
source§impl<'a> PartialEq<GraphQLError<'a>> for GraphQLError<'a>
impl<'a> PartialEq<GraphQLError<'a>> for GraphQLError<'a>
source§fn eq(&self, other: &GraphQLError<'a>) -> bool
fn eq(&self, other: &GraphQLError<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.