Trait async_graphql::ErrorExtensions[][src]

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

    fn extend_with<C>(self, cb: C) -> Error
    where
        C: FnOnce(&Self, &mut ErrorExtensionValues)
, { ... } }

An error which can be extended into a Error.

Required methods

fn extend(&self) -> Error[src]

Convert the error to a Error.

Loading content...

Provided methods

fn extend_with<C>(self, cb: C) -> Error where
    C: FnOnce(&Self, &mut ErrorExtensionValues), 
[src]

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

Loading content...