mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-24 08:28:12 +00:00
chore(graphql): bump graphql engine version (#9864)
This commit is contained in:
parent
cda34b50fc
commit
e4bc915c78
@ -128,8 +128,8 @@ project.ext.externalDependency = [
|
||||
'elasticSearchRest': 'org.opensearch.client:opensearch-rest-high-level-client:' + elasticsearchVersion,
|
||||
'elasticSearchJava': 'org.opensearch.client:opensearch-java:2.6.0',
|
||||
'findbugsAnnotations': 'com.google.code.findbugs:annotations:3.0.1',
|
||||
'graphqlJava': 'com.graphql-java:graphql-java:19.5',
|
||||
'graphqlJavaScalars': 'com.graphql-java:graphql-java-extended-scalars:19.1',
|
||||
'graphqlJava': 'com.graphql-java:graphql-java:21.3',
|
||||
'graphqlJavaScalars': 'com.graphql-java:graphql-java-extended-scalars:21.0',
|
||||
'gson': 'com.google.code.gson:gson:2.8.9',
|
||||
'guice': 'com.google.inject:guice:7.0.0',
|
||||
'guice4': 'com.google.inject:guice:4.2.3', // Used for frontend while still on old Play version
|
||||
|
||||
@ -6,6 +6,7 @@ import graphql.execution.DataFetcherExceptionHandlerParameters;
|
||||
import graphql.execution.DataFetcherExceptionHandlerResult;
|
||||
import graphql.execution.ResultPath;
|
||||
import graphql.language.SourceLocation;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@PublicApi
|
||||
@ -15,7 +16,7 @@ public class DataHubDataFetcherExceptionHandler implements DataFetcherExceptionH
|
||||
private static final String DEFAULT_ERROR_MESSAGE = "An unknown error occurred.";
|
||||
|
||||
@Override
|
||||
public DataFetcherExceptionHandlerResult onException(
|
||||
public CompletableFuture<DataFetcherExceptionHandlerResult> handleException(
|
||||
DataFetcherExceptionHandlerParameters handlerParameters) {
|
||||
Throwable exception = handlerParameters.getException();
|
||||
SourceLocation sourceLocation = handlerParameters.getSourceLocation();
|
||||
@ -44,7 +45,8 @@ public class DataHubDataFetcherExceptionHandler implements DataFetcherExceptionH
|
||||
log.error("Failed to execute", exception);
|
||||
}
|
||||
DataHubGraphQLError error = new DataHubGraphQLError(message, path, sourceLocation, errorCode);
|
||||
return DataFetcherExceptionHandlerResult.newResult().error(error).build();
|
||||
return CompletableFuture.completedFuture(
|
||||
DataFetcherExceptionHandlerResult.newResult().error(error).build());
|
||||
}
|
||||
|
||||
<T extends Throwable> T findFirstThrowableCauseOfClass(Throwable throwable, Class<T> clazz) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user