Class UnexpectedCloseException

All Implemented Interfaces:
Serializable

public class UnexpectedCloseException extends InvalidResponseException
Marks a close WebSocket message from the server that was unexpected.
See Also:
  • Constructor Details

    • UnexpectedCloseException

      public UnexpectedCloseException(String message, int closeStatusCode)
    • UnexpectedCloseException

      public UnexpectedCloseException(String message, Throwable cause, int closeStatusCode)
  • Method Details

    • getCloseStatusCode

      public int getCloseStatusCode()
      The close status code returned by the server.