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
-
Constructor Summary
ConstructorsConstructorDescriptionFieldAccessException(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 occurred.Methods inherited from class GraphQlClientException
getRequestMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class 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 occurred. -
getField
Return the field that needed to be accessed.
-