Jetty WebSocket API : Exception Types
Exception Summary Exception Description BadPayloadExceptionException to terminate the connection because it has received data within a frame payload that was not consistent with the requirements of that frame payload. CloseException InvalidWebSocketExceptionIndicating that the provided Class is not a valid WebSocket as defined by the API. MessageTooLargeExceptionException when a message is too large for the internal buffers occurs and should trigger a connection close. PolicyViolationExceptionException when a violation of policy occurs and should trigger a connection close. ProtocolExceptionPer spec, a protocol error should result in a Close frame of status code 1002 (PROTOCOL_ERROR) UpgradeExceptionException during WebSocket Upgrade Handshake. WebSocketExceptionA recoverable exception within the websocket framework. WebSocketTimeoutExceptionException thrown to indicate a connection I/O timeout.