Class GraphQLError
java.lang.Object
com.codename1.backend.graphql.GraphQLError
One entry of a response's errors, as a DataFetcherExceptionResolver or a
@GraphQlExceptionHandler method returns it. The location and path are the
failing field's and are filled in by the engine.
return GraphQLError.newError().errorType(GraphQLError.ErrorType.NOT_FOUND)
.message("No book " + e.getId()).build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds aGraphQLError.static enumThe classifications Spring for GraphQL'sErrorTypenames, written as the error'sextensions.classification. -
Method Summary
Modifier and TypeMethodDescriptionThe error'sextensions,classificationincluded.static GraphQLError.BuildernewError()A builder with no message and the classificationDataFetchingException.
-
Method Details
-
newError
A builder with no message and the classificationDataFetchingException. -
getMessage
-
getExtensions
-