Class ConnectionHandler.WebSocketError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- page.codeberg.terratactician_expandoria.bots.ConnectionHandler.WebSocketError
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ConnectionHandler
public static class ConnectionHandler.WebSocketError extends java.lang.RuntimeExceptionWebSocketError 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 protectedWebSocketError(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 booleanisStillConnected()Getter for stillConnectedstatic ConnectionHandler.WebSocketErrornotConnected()Factory for the proxy Exception for WebsocketNotConnectedException from the websocket lib.
-
-
-
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
-
-