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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintClose code that should be used to close the connection.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
WsCloseExceptionCreate a new exception.- Parameters:
- message- message to use, will be used as the description of the close code
- closeCode- WebSocket close code, see- WsCloseCodes
 
 
- 
- 
Method Details- 
closeCodepublic int closeCode()Close code that should be used to close the connection.- Returns:
- close code
 
 
-