[][src]Struct juniper::ExecutionError

pub struct ExecutionError<S> { /* fields omitted */ }

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> Ord for ExecutionError<S> where
    Self: Eq
[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<S> Eq for ExecutionError<S> where
    Self: PartialEq
[src]

impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S> where
    Self: PartialEq
[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<S: PartialEq> PartialEq<ExecutionError<S>> for ExecutionError<S>[src]

impl<S: Debug> Debug for ExecutionError<S>[src]

impl<T> Serialize for ExecutionError<T> where
    T: ScalarValue
[src]

Auto Trait Implementations

impl<S> Send for ExecutionError<S> where
    S: Send

impl<S> Sync for ExecutionError<S> where
    S: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]