Class WsCloseException

All Implemented Interfaces:
Serializable

public class WsCloseException extends RuntimeException
Exception requesting a close of the WebSocket communication.
See Also:
  • Constructor Details

    • WsCloseException

      public WsCloseException(String message, int closeCode)
      Create a new exception.
      Parameters:
      message - message to use, will be used as the description of the close code
      closeCode - WebSocket close code, see WsCloseCodes
  • Method Details

    • closeCode

      public int closeCode()
      Close code that should be used to close the connection.
      Returns:
      close code