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
sourceimpl<'a> Debug for GraphQLError<'a>
impl<'a> Debug for GraphQLError<'a>
sourceimpl<'a> Display for GraphQLError<'a>
impl<'a> Display for GraphQLError<'a>
sourceimpl<'a> Error for GraphQLError<'a>
impl<'a> Error for GraphQLError<'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> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
impl<'a> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
sourcefn from(f: Spanning<ParseError<'a>>) -> GraphQLError<'a>
fn from(f: Spanning<ParseError<'a>>) -> GraphQLError<'a>
Converts to this type from the input type.
sourceimpl<'a> PartialEq<GraphQLError<'a>> for GraphQLError<'a>
impl<'a> PartialEq<GraphQLError<'a>> for GraphQLError<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &GraphQLError<'a>) -> bool
fn ne(&self, other: &GraphQLError<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for GraphQLError<'a>
impl<'a> Serialize for GraphQLError<'a>
impl<'a> StructuralPartialEq for GraphQLError<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GraphQLError<'a>
impl<'a> Send for GraphQLError<'a>
impl<'a> Sync for GraphQLError<'a>
impl<'a> Unpin for GraphQLError<'a>
impl<'a> UnwindSafe for GraphQLError<'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