[][src]Trait async_graphql::ErrorExtensions

pub trait ErrorExtensions: Sized {
    fn extend(&self) -> FieldError;

    fn extend_with<C>(self, cb: C) -> FieldError
    where
        C: FnOnce(&Self) -> Value
, { ... } }

An error which can be extended into a FieldError.

Required methods

fn extend(&self) -> FieldError

Convert the error to a FieldError.

Loading content...

Provided methods

fn extend_with<C>(self, cb: C) -> FieldError where
    C: FnOnce(&Self) -> Value

Add extensions to the error, using a callback to make the extensions.

Loading content...

Implementations on Foreign Types

impl<E: Display, '_> ErrorExtensions for &'_ E[src]

Loading content...

Implementors

impl ErrorExtensions for FieldError[src]

Loading content...