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.
Can`t disable GraphQLErrorFromExceptionHandler #611
Closed
Description
If I use @ExceptionsHandler
in my Resolvers I can't disable the use of the GraphQLErrorFromExceptionHandler
. But I need to disable the feature!!
I think the problem is in the following class:
public class GraphQLErrorHandlerFactory {
public GraphQLErrorHandler create(ConfigurableApplicationContext applicationContext,
boolean exceptionHandlersEnabled) {
if (!factories.isEmpty() || exceptionHandlersEnabled) {
log.debug("Handle GraphQL errors using exception handlers defined in {} custom factories",
factories.size());
return new GraphQLErrorFromExceptionHandler(factories);
}
I think it should be if (!factories.isEmpty() && exceptionHandlersEnabled)
and not ||
right?