public interface DataFetcherExceptionHandler extends java.util.function.Consumer<DataFetcherExceptionHandlerParameters>
DataFetcher.get(DataFetchingEnvironment) execution| Modifier and Type | Method and Description |
|---|---|
void |
accept(DataFetcherExceptionHandlerParameters handlerParameters)
When an exception during a call to a
DataFetcher then this handler
is called back to shape the error that should be placed in the list of errors
via ExecutionContext.addError(GraphQLError, graphql.execution.ExecutionPath) |
void accept(DataFetcherExceptionHandlerParameters handlerParameters)
DataFetcher then this handler
is called back to shape the error that should be placed in the list of errors
via ExecutionContext.addError(GraphQLError, graphql.execution.ExecutionPath)accept in interface java.util.function.Consumer<DataFetcherExceptionHandlerParameters>handlerParameters - the parameters to this callback