public class FieldAccessException extends GraphQlClientException
failed response
or a field is not present,
or has no value, checked via
ResponseField.hasValue()
.Constructor and Description |
---|
FieldAccessException(ClientGraphQlRequest request,
ClientGraphQlResponse response,
ClientResponseField field)
Constructor with the request and response, and the accessed field.
|
Modifier and Type | Method and Description |
---|---|
ClientResponseField |
getField()
Return the field that needed to be accessed.
|
ClientGraphQlResponse |
getResponse()
Return the [@code GraphQlResponse} for which the error ouccrred.
|
getRequest
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FieldAccessException(ClientGraphQlRequest request, ClientGraphQlResponse response, ClientResponseField field)
public ClientGraphQlResponse getResponse()
public ClientResponseField getField()