Type Definition lib::errors::GQLError [−][src]
type GQLError = Error;
Expand description
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.
Example
use diana::errors::{GQLResult, GQLError}; async fn api_version( &self, ) -> GQLResult<String> { let err = GQLError::new("Test error!"); // Your code here }