Class WsCloseException

All Implemented Interfaces:

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.
      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.
      close code