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 CloseReasongetCloseReason()Get close reason.
-
-
-
Method Detail
-
getCloseReason
public CloseReason getCloseReason()
Description copied from class:WebSocketExceptionGet close reason.- Specified by:
getCloseReasonin classWebSocketException- Returns:
- close reason used when processing this exception.
-
-