Class FieldAccessException

All Implemented Interfaces:
Serializable

public class FieldAccessException extends GraphQlClientException
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 Details

    • FieldAccessException

      public 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

    • getResponse

      public ClientGraphQlResponse getResponse()
      Return the [@code GraphQlResponse} for which the error ouccrred.
    • getField

      public ClientResponseField getField()
      Return the field that needed to be accessed.