[][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.


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

impl<S> Ord for ExecutionError<S> where
    Self: Eq

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

impl<S> PartialOrd<ExecutionError<S>> for ExecutionError<S> where
    Self: PartialEq

impl<T> Serialize for ExecutionError<T> where
    T: ScalarValue

impl<S> StructuralPartialEq for ExecutionError<S>[src]

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.