Class ErrorResultHelper
java.lang.Object
io.smallrye.graphql.execution.datafetcher.helper.ErrorResultHelper
Helping with PartialResults
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendException(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, graphql.schema.DataFetchingEnvironment dfe, Throwable t) voidappendPartialResult(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, graphql.schema.DataFetchingEnvironment dfe, org.eclipse.microprofile.graphql.GraphQLException graphQLException) List<graphql.GraphQLError> toGraphQLErrors(graphql.schema.DataFetchingEnvironment dfe, Throwable t)
-
Constructor Details
-
ErrorResultHelper
public ErrorResultHelper()
-
-
Method Details
-
appendPartialResult
public void appendPartialResult(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, graphql.schema.DataFetchingEnvironment dfe, org.eclipse.microprofile.graphql.GraphQLException graphQLException) -
toGraphQLErrors
-
appendException
-