From 63c2f5a91ad8bf75a7fe5e69046ae6cb3edee8eb Mon Sep 17 00:00:00 2001 From: liris Date: Wed, 15 Oct 2014 15:15:01 +0900 Subject: refs #117 . change exception type. --- websocket/_exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'websocket/_exceptions.py') diff --git a/websocket/_exceptions.py b/websocket/_exceptions.py index b0be191..85aa0e3 100644 --- a/websocket/_exceptions.py +++ b/websocket/_exceptions.py @@ -30,6 +30,11 @@ class WebSocketException(Exception): """ pass +class WebSocketProtocolException(WebSocketException): + """ + If the webscoket protocol is invalid, this exception will be raised. + """ + pass class WebSocketConnectionClosedException(WebSocketException): """ -- cgit v1.2.1