Class SubscriptionErrorException

All Implemented Interfaces:
Serializable

public class SubscriptionErrorException extends GraphQlTransportException
WebSocket GraphQlTransportException raised when a subscription ends with an "error" message. The getErrors() method provides access to the GraphQL errors from the message payload.
Since:
1.0.0
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • SubscriptionErrorException

      public SubscriptionErrorException(GraphQlRequest request, List<ResponseError> errors)
      Constructor with the request details and the errors listed in the payload of the "errors" message.
      Parameters:
      request - the request details
      errors - the errors listed in the payload
  • Method Details

    • getErrors

      public List<ResponseError> getErrors()
      Return the errors contained in the GraphQL over WebSocket "errors" message.