Class GraphQLRequestExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.graphql_java_generator.exception.GraphQLRequestExecutionException
- All Implemented Interfaces:
Serializable
Thrown when an error occurs during the request execution. This is typically when :
- One or more Bind Variable are missing
- When an error occurred on server side. In this case (and only in this case), the
getErrors()method returns non null value. This value is the server errors list.
- Author:
- etienne-sf
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLRequestExecutionException(String msg, Throwable cause) GraphQLRequestExecutionException(List<org.springframework.graphql.ResponseError> errors) Generates a new instance, from a non empty and non null list ofGraphQLError -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphQLRequestExecutionException
-
GraphQLRequestExecutionException
-
GraphQLRequestExecutionException
Generates a new instance, from a non empty and non null list ofGraphQLError- Parameters:
errors- A list of GraphQL error messages
-
-
Method Details
-
getErrors
-