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
sourceimpl<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
sourceimpl<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
sourceimpl<S: Debug> Debug for ExecutionError<S>
impl<S: Debug> Debug for ExecutionError<S>
sourceimpl<S> Ord for ExecutionError<S> where
Self: Eq,
impl<S> Ord for ExecutionError<S> where
Self: Eq,
sourcefn cmp(&self, other: &ExecutionError<S>) -> Ordering
fn cmp(&self, other: &ExecutionError<S>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>
impl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ExecutionError<S>) -> bool
fn ne(&self, other: &ExecutionError<S>) -> bool
This method tests for !=
.
sourceimpl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S> where
Self: PartialEq,
impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S> where
Self: PartialEq,
sourcefn partial_cmp(&self, other: &ExecutionError<S>) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutionError<S>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<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
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.