public class SimpleDataFetcherExceptionHandler extends java.lang.Object implements DataFetcherExceptionHandler
ExceptionWhileDataFetching error
into the error collection| Constructor and Description |
|---|
SimpleDataFetcherExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
DataFetcherExceptionHandlerResult |
onException(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 |
public DataFetcherExceptionHandlerResult onException(DataFetcherExceptionHandlerParameters handlerParameters)
DataFetcherExceptionHandlerDataFetcher then this handler
is called back to shape the error that should be placed in the list of errorsonException in interface DataFetcherExceptionHandlerhandlerParameters - the parameters to this callbackGraphQLErrors