Class GraphQLRequestExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.graphql_java_generator.exception.GraphQLRequestExecutionException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
GraphQLResponseParseException
public class GraphQLRequestExecutionException
extends java.lang.Exception
Thrown when an error occurs during the request execution. This is typically, when Bind Variable are missing while
executing a request, or when an error occurs on server side. In the later case, the
getErrors() method
allows to retrieve the error data returned by the GraphQL server, including the source location, and extension.- Author:
- etienne-sf
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description GraphQLRequestExecutionException(java.lang.String msg)GraphQLRequestExecutionException(java.lang.String msg, java.lang.Throwable cause)GraphQLRequestExecutionException(java.lang.String msg, java.util.List<Error> errors)GraphQLRequestExecutionException(java.util.List<Error> errors)Generates a new instance, from a non empty and non null list ofGraphQLError -
Method Summary
-
Constructor Details
-
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.lang.String msg) -
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.lang.String msg, java.lang.Throwable cause) -
GraphQLRequestExecutionException
Generates a new instance, from a non empty and non null list ofGraphQLError- Parameters:
errors- A list of GraphQL error messages
-
GraphQLRequestExecutionException
-
-
Method Details