Class WebSocketException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProtocolException, Utf8DecodingException

public abstract class WebSocketException extends RuntimeException
WebSocketException can be thrown during runtime (after handshake).
See Also:
  • Constructor Details

    • WebSocketException

      public WebSocketException(String message)
      Create new WebSocketException.
      Parameters:
      message - excetion message.
  • Method Details

    • getCloseReason

      public abstract CloseReason getCloseReason()
      Get close reason.
      Returns:
      close reason used when processing this exception.