[−][src]Struct juniper::ExecutionError
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.
Methods
impl<S> ExecutionError<S>
[src]
pub fn at_origin(error: FieldError<S>) -> ExecutionError<S>
[src]
Construct a new execution error occuring at the beginning of the query
impl<S> ExecutionError<S>
[src]
pub fn error(&self) -> &FieldError<S>
[src]
The error message
pub fn location(&self) -> &SourcePosition
[src]
The source location in the query of the field that failed to resolve
pub fn path(&self) -> &[String]
[src]
The path of fields leading to the field that generated this error
Trait Implementations
impl<S: Debug> Debug for ExecutionError<S>
[src]
impl<S> Eq for ExecutionError<S> where
Self: PartialEq,
[src]
Self: PartialEq,
impl<S> Ord for ExecutionError<S> where
Self: Eq,
[src]
Self: Eq,
fn cmp(&self, other: &ExecutionError<S>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>
[src]
fn eq(&self, other: &ExecutionError<S>) -> bool
[src]
fn ne(&self, other: &ExecutionError<S>) -> bool
[src]
impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S> where
Self: PartialEq,
[src]
Self: PartialEq,
fn partial_cmp(&self, other: &ExecutionError<S>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Serialize for ExecutionError<T> where
T: ScalarValue,
[src]
T: ScalarValue,
impl<S> StructuralPartialEq for ExecutionError<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for ExecutionError<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for ExecutionError<S> where
S: Send,
S: Send,
impl<S> Sync for ExecutionError<S> where
S: Sync,
S: Sync,
impl<S> Unpin for ExecutionError<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for ExecutionError<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,