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.IOException
Allows the WebSocket implementation to throw anIOException
that includes aCloseReason
specific to the error that can be passed back to the client.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WsIOException(CloseReason closeReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseReason
getCloseReason()
-
-
-
Constructor Detail
-
WsIOException
public WsIOException(CloseReason closeReason)
-
-
Method Detail
-
getCloseReason
public CloseReason getCloseReason()
-
-