Interface DataFetcherExceptionResolver

All Known Implementing Classes:
DataFetcherExceptionResolverAdapter, ReactiveSecurityDataFetcherExceptionResolver, SecurityDataFetcherExceptionResolver

public interface DataFetcherExceptionResolver
Contract to resolve exceptions from DataFetchers. Implementations are typically declared as beans in Spring configuration and are invoked sequentially until one emits a List of GraphQLErrors.

Most resolver implementations can extend DataFetcherExceptionResolverAdapter and override one of its resolveToSingleError or resolveToMultipleErrors methods that resolve the exception synchronously.

Resolver implementations can use ErrorType to classify errors using one of several common categories.

Since:
1.0.0
Author:
Rossen Stoyanchev
See Also: