Class FieldAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.graphql.client.GraphQlClientException
org.springframework.graphql.client.FieldAccessException
- All Implemented Interfaces:
Serializable
An exception raised when an attempt is made to decode data from a response
that is not
valid
or where field value
is null
, or there field errors
.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Constructor Summary
ConstructorDescriptionFieldAccessException
(ClientGraphQlRequest request, ClientGraphQlResponse response, ClientResponseField field) Constructor with the request and response, and the accessed field. -
Method Summary
Modifier and TypeMethodDescriptiongetField()
Return the field that needed to be accessed.Return the [@code GraphQlResponse} for which the error ouccrred.Methods inherited from class org.springframework.graphql.client.GraphQlClientException
getRequest
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
-
FieldAccessException
public FieldAccessException(ClientGraphQlRequest request, ClientGraphQlResponse response, ClientResponseField field) Constructor with the request and response, and the accessed field.- Parameters:
request
- the client requestresponse
- the client responsefield
- the accessed field that caused the error
-
-
Method Details
-
getResponse
Return the [@code GraphQlResponse} for which the error ouccrred. -
getField
Return the field that needed to be accessed.
-