Class ErrorResultHelper
- java.lang.Object
-
- io.smallrye.graphql.execution.datafetcher.helper.ErrorResultHelper
-
public class ErrorResultHelper extends Object
Helping with PartialResults- Author:
- Phillip Kruger ([email protected])
-
-
Constructor Summary
Constructors Constructor Description ErrorResultHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendException(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, graphql.schema.DataFetchingEnvironment dfe, Throwable t)
void
appendPartialResult(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)
-
-
-
Method Detail
-
appendPartialResult
public void appendPartialResult(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, graphql.schema.DataFetchingEnvironment dfe, org.eclipse.microprofile.graphql.GraphQLException graphQLException)
-
toGraphQLErrors
public List<graphql.GraphQLError> toGraphQLErrors(graphql.schema.DataFetchingEnvironment dfe, Throwable t)
-
-