Struct juniper::executor::ExecutionError
source · pub struct ExecutionError<S> { /* private fields */ }
Expand description
Error type for errors that occur during query execution
All execution errors contain the source position in the query of the field that failed to resolve. It also contains the field stack.
Implementations§
source§impl<S> ExecutionError<S>
impl<S> ExecutionError<S>
sourcepub fn at_origin(error: FieldError<S>) -> ExecutionError<S>
pub fn at_origin(error: FieldError<S>) -> ExecutionError<S>
Construct a new execution error occuring at the beginning of the query
source§impl<S> ExecutionError<S>
impl<S> ExecutionError<S>
sourcepub fn error(&self) -> &FieldError<S>
pub fn error(&self) -> &FieldError<S>
The error message
sourcepub fn location(&self) -> &SourcePosition
pub fn location(&self) -> &SourcePosition
The source location in the query of the field that failed to resolve
Trait Implementations§
source§impl<S: Debug> Debug for ExecutionError<S>
impl<S: Debug> Debug for ExecutionError<S>
source§impl<S> Ord for ExecutionError<S>where
Self: Eq,
impl<S> Ord for ExecutionError<S>where
Self: Eq,
source§fn cmp(&self, other: &ExecutionError<S>) -> Ordering
fn cmp(&self, other: &ExecutionError<S>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>
impl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>
source§fn eq(&self, other: &ExecutionError<S>) -> bool
fn eq(&self, other: &ExecutionError<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S>where
Self: PartialEq,
impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S>where
Self: PartialEq,
source§fn partial_cmp(&self, other: &ExecutionError<S>) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutionError<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> Serialize for ExecutionError<T>where
T: ScalarValue,
impl<T> Serialize for ExecutionError<T>where
T: ScalarValue,
impl<S> Eq for ExecutionError<S>where
Self: PartialEq,
impl<S> StructuralPartialEq for ExecutionError<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for ExecutionError<S>where
S: RefUnwindSafe,
impl<S> Send for ExecutionError<S>where
S: Send,
impl<S> Sync for ExecutionError<S>where
S: Sync,
impl<S> Unpin for ExecutionError<S>where
S: Unpin,
impl<S> UnwindSafe for ExecutionError<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.