Package org.glassfish.tyrus.core
Class WebSocketException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.tyrus.core.WebSocketException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ProtocolException
,Utf8DecodingException
public abstract class WebSocketException extends java.lang.RuntimeException
WebSocketException can be thrown during runtime (after handshake).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketException(java.lang.String message)
Create newWebSocketException
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CloseReason
getCloseReason()
Get close reason.
-
-
-
Constructor Detail
-
WebSocketException
public WebSocketException(java.lang.String message)
Create newWebSocketException
.- Parameters:
message
- excetion message.
-
-
Method Detail
-
getCloseReason
public abstract CloseReason getCloseReason()
Get close reason.- Returns:
- close reason used when processing this exception.
-
-