Trait async_graphql::ErrorExtensions

source ·
pub trait ErrorExtensions: Sized {
    // Required method
    fn extend(&self) -> Error;

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

An error which can be extended into a Error.

Required Methods§

source

fn extend(&self) -> Error

Convert the error to a Error.

Provided Methods§

source

fn extend_with<C>(self, cb: C) -> Error

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E: Display> ErrorExtensions for &E

source§

fn extend(&self) -> Error

Implementors§