Struct async_graphql::Error [−][src]
pub struct Error {
pub message: String,
pub source: Option<Arc<dyn Any + Send + Sync>>,
pub extensions: Option<ErrorExtensionValues>,
}
Expand description
An error with a message and optional extensions.
Fields
message: String
The error message.
source: Option<Arc<dyn Any + Send + Sync>>
The source of the error.
extensions: Option<ErrorExtensionValues>
Extensions to the error.
Implementations
Create an error with a type that implements Display
, and it will also set the
source
of the error to this value.
Convert the error to a server error.
Trait Implementations
Add extensions to the error, using a callback to make the extensions.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more