Skip to content
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
@Thinkenterprise

Description

@Thinkenterprise

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions