Class WebSocketException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ProtocolException, Utf8DecodingException

    public abstract class WebSocketException
    extends java.lang.RuntimeException
    WebSocketException can be thrown during runtime (after handshake).
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract CloseReason getCloseReason()
      Get close reason.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WebSocketException

        public WebSocketException​(java.lang.String message)
        Create new WebSocketException.
        Parameters:
        message - excetion message.
    • Method Detail

      • getCloseReason

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