Class GraphQLRequestExecutionUncheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.graphql_java_generator.exception.GraphQLRequestExecutionUncheckedException
- All Implemented Interfaces:
GraphQLRequestExecutionExceptionInterface
,Serializable
public class GraphQLRequestExecutionUncheckedException
extends RuntimeException
implements GraphQLRequestExecutionExceptionInterface
This class is the unchecked exception version of the
GraphQLRequestExecutionException
. It is used in reactive
implementation to propagate an exception that would occur during the request execution, typically an (or more) error
returned by the server.- Author:
- etienne-sf
- See Also:
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Retrieves the data part of the response: it may contain valid data, even if when the server sent errors back, for instance if multiple fields of a query or a mutation are requestedList<org.springframework.graphql.ResponseError>
Allows to retrieve the list of error that have been received from the GraphQL serverRetrieve the checked exception that is the source of this exceptionorg.springframework.graphql.client.ClientGraphQlResponse
Get the full server response, for further investigation.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphQLRequestExecutionUncheckedException
-
-
Method Details
-
getGraphQLRequestExecutionException
Retrieve the checked exception that is the source of this exception -
getErrors
Description copied from interface:GraphQLRequestExecutionExceptionInterface
Allows to retrieve the list of error that have been received from the GraphQL server- Specified by:
getErrors
in interfaceGraphQLRequestExecutionExceptionInterface
-
getData
Description copied from interface:GraphQLRequestExecutionExceptionInterface
Retrieves the data part of the response: it may contain valid data, even if when the server sent errors back, for instance if multiple fields of a query or a mutation are requested- Specified by:
getData
in interfaceGraphQLRequestExecutionExceptionInterface
-
getResponse
public org.springframework.graphql.client.ClientGraphQlResponse getResponse()Description copied from interface:GraphQLRequestExecutionExceptionInterface
Get the full server response, for further investigation.- Specified by:
getResponse
in interfaceGraphQLRequestExecutionExceptionInterface
- Returns:
-