docs: reword intro for features/errors

This commit is contained in:
Evans Hauser 2018-05-02 11:46:29 -07:00
parent 222400ebf4
commit 33697e68a7
No known key found for this signature in database
GPG key ID: 88AF586817F52EEC

View file

@ -5,9 +5,9 @@ description: Making errors actionable on the client and server
## Overview
Apollo server provides a couple predefined errors, including `AuthenticationError`, `ForbiddenError`, and a generic `ApolloError`. These errors enhance before and during GraphQL execution. These errors focus on improving the ability to debug a server as well as enabling the client to take specific action based on an error.
Apollo server provides a couple predefined errors, including `AuthenticationError`, `ForbiddenError`, and a generic `ApolloError`. These errors are designed to enhance errors thrown before and during GraphQL execution. The provided errors focus on debugging a Apollo server as well as enabling the client to take specific action based on an error.
When an error occurs in Apollo server both inside and outside of resolvers, each error inside of the `errors` array will contain an object at `extensions` that contains additional information.
When an error occurs in Apollo server both inside and outside of resolvers, each error inside of the `errors` array will contain an object at `extensions` that contains the information added by Apollo server.
## Default information