public class SimpleDataFetcherExceptionHandler extends java.lang.Object implements DataFetcherExceptionHandler
ExceptionWhileDataFetching
error
into the error collectionConstructor and Description |
---|
SimpleDataFetcherExceptionHandler() |
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) |
public void accept(DataFetcherExceptionHandlerParameters handlerParameters)
DataFetcherExceptionHandler
DataFetcher
then this handler
is called back to shape the error that should be placed in the list of errors
via ExecutionContext.addError(GraphQLError)
accept
in interface DataFetcherExceptionHandler
accept
in interface java.util.function.Consumer<DataFetcherExceptionHandlerParameters>
handlerParameters
- the parameters to this callback