[−][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: 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> 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]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<S> Eq for ExecutionError<S> where
Self: PartialEq,
[src]
Self: PartialEq,
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]
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: Debug> Debug for ExecutionError<S>
[src]
impl<T> Serialize for ExecutionError<T> where
T: ScalarValue,
[src]
T: ScalarValue,
Auto Trait Implementations
impl<S> Send for ExecutionError<S> where
S: Send,
S: Send,
impl<S> Sync for ExecutionError<S> where
S: Sync,
S: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,