Module diana::errors [−][src]
Expand description
The module for errors and results. This uses error_chain behind the scenes.
You’ll also find GQLResult
and GQLError
in here, which may be useful in working
with your own resolvers.
Macros
Exits a function early with an error
Structs
The Error type.
Enums
The kind of an error.
Traits
Additional methods for Result
, for easy interaction with this crate.
Type Definitions
A wrapper around async_graphql::Error
.
If any of your schemas need to explicitly create an error that only exists in them (and you’re not using something like error_chain),
you should use this.
A wrapper around async_graphql::Result<T>
.
You should use this as the return type for any of your own schemas that might return errors.
Convenient wrapper around std::Result
.