Package org.apache.tomcat.websocket
Class WsIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.tomcat.websocket.WsIOException
-
- All Implemented Interfaces:
java.io.Serializable
public class WsIOException extends java.io.IOExceptionAllows the WebSocket implementation to throw anIOExceptionthat includes aCloseReasonspecific to the error that can be passed back to the client.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WsIOException(CloseReason closeReason)Creates a WebSocket I/O exception with the given close reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseReasongetCloseReason()Returns the WebSocket close reason for this exception.
-
-
-
Constructor Detail
-
WsIOException
public WsIOException(CloseReason closeReason)
Creates a WebSocket I/O exception with the given close reason.- Parameters:
closeReason- the WebSocket close reason
-
-
Method Detail
-
getCloseReason
public CloseReason getCloseReason()
Returns the WebSocket close reason for this exception.- Returns:
- the close reason
-
-