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: Clone> Clone for ExecutionError<S>
impl<S: Clone> Clone for ExecutionError<S>
Source§fn clone(&self) -> ExecutionError<S>
fn clone(&self) -> ExecutionError<S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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 for ExecutionError<S>
impl<S: PartialEq> PartialEq for ExecutionError<S>
Source§impl<S> PartialOrd for ExecutionError<S>where
Self: PartialEq,
impl<S> PartialOrd for ExecutionError<S>where
Self: PartialEq,
Source§impl<T: Serialize> Serialize for ExecutionError<T>
impl<T: Serialize> Serialize for ExecutionError<T>
impl<S> Eq for ExecutionError<S>where
Self: PartialEq,
impl<S> StructuralPartialEq for ExecutionError<S>
Auto Trait Implementations§
impl<S> Freeze for ExecutionError<S>where
S: Freeze,
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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.