Class WsIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.tomcat.websocket.WsIOException
- All Implemented Interfaces:
Serializable
Allows the WebSocket implementation to throw an
IOException that includes a CloseReason specific to
the error that can be passed back to the client.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWsIOException(CloseReason closeReason) Creates a WebSocket I/O exception with the given close reason. -
Method Summary
Modifier and TypeMethodDescriptionReturns the WebSocket close reason for this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WsIOException
Creates a WebSocket I/O exception with the given close reason.- Parameters:
closeReason- the WebSocket close reason
-
-
Method Details
-
getCloseReason
Returns the WebSocket close reason for this exception.- Returns:
- the close reason
-