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 SummaryConstructorsConstructorDescriptionFieldAccessException(ClientGraphQlRequest request, ClientGraphQlResponse response, ClientResponseField field) Constructor with the request and response, and the accessed field.
- 
Method SummaryModifier 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.GraphQlClientExceptiongetRequestMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
FieldAccessExceptionpublic FieldAccessException(ClientGraphQlRequest request, ClientGraphQlResponse response, ClientResponseField field) Constructor with the request and response, and the accessed field.- Parameters:
- request- the client request
- response- the client response
- field- the accessed field that caused the error
 
 
- 
- 
Method Details- 
getResponseReturn the [@code GraphQlResponse} for which the error ouccrred.
- 
getFieldReturn the field that needed to be accessed.
 
-