Package org.glassfish.tyrus.core
Class ProtocolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.tyrus.core.WebSocketException
-
- org.glassfish.tyrus.core.ProtocolException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProtocolException extends WebSocketException
Represents issue with parsing or producing websocket frame.- Author:
- Pavel Bucek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtocolException(java.lang.String reasonPhrase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseReason
getCloseReason()
Get close reason.
-
-
-
Method Detail
-
getCloseReason
public CloseReason getCloseReason()
Description copied from class:WebSocketException
Get close reason.- Specified by:
getCloseReason
in classWebSocketException
- Returns:
- close reason used when processing this exception.
-
-