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.ExceptionThrown 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, thegetErrors()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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Error>getErrors()Returns the list of the errors returned by the GraphQL server.
-
-
-
Constructor Detail
-
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.lang.String msg)
-
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.lang.String msg, java.lang.Throwable cause)
-
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.util.List<Error> errors)
Generates a new instance, from a non empty and non null list ofGraphQLError- Parameters:
errors- A list of GraphQL error messages
-
GraphQLRequestExecutionException
public GraphQLRequestExecutionException(java.lang.String msg, java.util.List<Error> errors)
-
-