Class WebSocketDisconnectedException

All Implemented Interfaces:
Serializable

public class WebSocketDisconnectedException extends GraphQlTransportException
WebSocket related GraphQlTransportException raised when the connection is closed while a request or subscription is in progress.
Since:
1.0.0
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • WebSocketDisconnectedException

      public WebSocketDisconnectedException(String closeStatusMessage, GraphQlRequest request, CloseStatus status)
      Constructor with an explanation about the closure, along with the request details and the status used to close the WebSocket session.
      Parameters:
      closeStatusMessage - the message received when the connection was closed
      request - the ongoing request when the connection was closed
      status - the received close status
  • Method Details

    • getCloseStatus

      public CloseStatus getCloseStatus()
      Return the CloseStatus used to close the WebSocket session.