java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.websocket.WsCloseException
- All Implemented Interfaces:
Serializable
Exception requesting a close of the WebSocket communication.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Close code that should be used to close the connection.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WsCloseException
Create a new exception.- Parameters:
message
- message to use, will be used as the description of the close codecloseCode
- WebSocket close code, seeWsCloseCodes
-
-
Method Details
-
closeCode
public int closeCode()Close code that should be used to close the connection.- Returns:
- close code
-