Module lib::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
Convenient wrapper around std::Result.