Class GraphQlClientException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FieldAccessException, GraphQlTransportException

public class GraphQlClientException extends NestedRuntimeException
Base class for exceptions from GraphQlClient.
Since:
1.0.0
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • GraphQlClientException

      public GraphQlClientException(String message, @Nullable Throwable cause, GraphQlRequest request)
      Constructor with a message, optional cause, and the request details.
      Parameters:
      message - the exception message to use
      cause - the original cause for the client exception
      request - the request that failed
  • Method Details

    • getRequest

      public GraphQlRequest getRequest()
      Return the request for which the error occurred.