@PublicSpi public interface DataFetcherExceptionHandler
DataFetcher.get(DataFetchingEnvironment) execution| Modifier and Type | Method and Description |
|---|---|
default java.util.concurrent.CompletableFuture<DataFetcherExceptionHandlerResult> |
handleException(DataFetcherExceptionHandlerParameters handlerParameters)
When an exception occurs during a call to a
DataFetcher then this handler
is called to shape the errors that should be placed in the ExecutionResult.getErrors()
list of errors. |
default DataFetcherExceptionHandlerResult |
onException(DataFetcherExceptionHandlerParameters handlerParameters)
Deprecated.
use
handleException(DataFetcherExceptionHandlerParameters) instead which as an asynchronous
version |
@Deprecated default DataFetcherExceptionHandlerResult onException(DataFetcherExceptionHandlerParameters handlerParameters)
handleException(DataFetcherExceptionHandlerParameters) instead which as an asynchronous
versionDataFetcher then this handler
is called to shape the errors that should be placed in the ExecutionResult.getErrors()
list of errors.handlerParameters - the parameters to this callbackGraphQLErrorsdefault java.util.concurrent.CompletableFuture<DataFetcherExceptionHandlerResult> handleException(DataFetcherExceptionHandlerParameters handlerParameters)
DataFetcher then this handler
is called to shape the errors that should be placed in the ExecutionResult.getErrors()
list of errors.handlerParameters - the parameters to this callbackGraphQLErrors