Class GraphQlClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.graphql.client.GraphQlClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FieldAccessException
,GraphQlTransportException
Base class for exceptions from
GraphQlClient
.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Constructor Summary
ConstructorDescriptionGraphQlClientException
(String message, Throwable cause, GraphQlRequest request) Constructor with a message, optional cause, and the request details. -
Method Summary
Modifier and TypeMethodDescriptionReturn the request for which the error occurred.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphQlClientException
Constructor with a message, optional cause, and the request details.- Parameters:
message
- the exception message to usecause
- the original cause for the client exceptionrequest
- the request that failed
-
-
Method Details
-
getRequest
Return the request for which the error occurred.
-