This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Custom exception handler no longer working with 8.1.0 #493
Closed
Description
Describe the bug
After upgrading from 8.0.0 to 8.1.0 the custom exceptions stopped working and all graphql errors are being converted back to the default "Internal server error" message.
To Reproduce
Steps to reproduce the behavior:
- Expose a bean with
@ExceptionHandler
methods to createGraphQLError
in case of certain exceptions - Configure
graphql.servlet.exception-handlers-enabled: true
- Run a GraphQL query which should result in an exception
- The returned error always contain a default message starting with "Internal server error"
Expected behavior
Instead of the default GraphQLError I'd expect my custom error to be returned.