-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic ability to add extension key-value for Errors #299
Comments
I think we should add an |
I think graphql-java has the most flexible, if not the most developer friendly approach. There you register a DataFetcherExceptionHandler and override getExtensions in the thrown GraphQLError. This makes it possible to add 3 important use cases for exception extensions:
|
…ow custom GraphQL error `extension` fields; use it for `code` and `exception` (class name)
fix #299: custom GraphQL error `extension` fields
Relate to #282. We have code as a key supported with #295 but still need a generic key value.
Some more features:
The text was updated successfully, but these errors were encountered: