Class ConnectionHandler.WebSocketError

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ConnectionHandler

    public static class ConnectionHandler.WebSocketError
    extends java.lang.RuntimeException
    WebSocketError will be thrown if an error with the websocket happens. Carries information about the reason.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WebSocketError​(java.lang.String message, boolean stillConnected)
      Constructor for a WebSocketError.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isStillConnected()
      Getter for stillConnected
      static ConnectionHandler.WebSocketError notConnected()
      Factory for the proxy Exception for WebsocketNotConnectedException from the websocket lib.
      • 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

      • WebSocketError

        protected WebSocketError​(java.lang.String message,
                                 boolean stillConnected)
        Constructor for a WebSocketError. Should only be used by factories.
        Parameters:
        message - Error message
        stillConnected - connection state of the websocket
    • Method Detail

      • isStillConnected

        public boolean isStillConnected()
        Getter for stillConnected
        Returns:
        if the WebSocket is still connected.
      • notConnected

        public static ConnectionHandler.WebSocketError notConnected()
        Factory for the proxy Exception for WebsocketNotConnectedException from the websocket lib.
        Returns:
        new WebSocketError instance