Class ExceptionHandler

java.lang.Object
io.smallrye.graphql.execution.error.ExceptionHandler
All Implemented Interfaces:
graphql.execution.DataFetcherExceptionHandler

public class ExceptionHandler extends Object implements graphql.execution.DataFetcherExceptionHandler
Here we have the ability to mask certain messages to the client (for security reasons)
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • ExceptionHandler

      public ExceptionHandler()
  • Method Details

    • handleException

      public CompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult> handleException(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters)
      Specified by:
      handleException in interface graphql.execution.DataFetcherExceptionHandler