3 g๗ิY]ใ@sxdZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGd d „d eƒZGd d „d eƒZGd d„deƒZdS)aL websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA c@seZdZdZdS)ฺWebSocketExceptionz$ websocket exception class. N)ฺ__name__ฺ __module__ฺ __qualname__ฺ__doc__ฉrr๚F/Users/olari/OneDrive/sandbox/awsBlog2/lambda/websocket/_exceptions.pyrsrc@seZdZdZdS)ฺWebSocketProtocolExceptionzN If the websocket protocol is invalid, this exception will be raised. N)rrrrrrrrr$src@seZdZdZdS)ฺWebSocketPayloadExceptionzM If the websocket payload is invalid, this exception will be raised. N)rrrrrrrrr +sr c@seZdZdZdS)ฺ"WebSocketConnectionClosedExceptionzq If remote host closed the connection or some network error happened, this exception will be raised. N)rrrrrrrrr 2sr c@seZdZdZdS)ฺWebSocketTimeoutExceptionz\ WebSocketTimeoutException will be raised at socket timeout during read/write data. N)rrrrrrrrr :sr c@seZdZdZdS)ฺWebSocketProxyExceptionzK WebSocketProxyException will be raised when proxy error occurred. N)rrrrrrrrr Asr cs eZdZdZ‡fdd„Z‡ZS)ฺWebSocketBadStatusExceptionz[ WebSocketBadStatusException will be raised when we get bad handshake status code. cstt|ƒj||ƒ||_dS)N)ฺsuperr ฺ__init__ฺ status_code)ฺselfฺmessager)ฺ __class__rrrMs  z$WebSocketBadStatusException.__init__)rrrrrฺ __classcell__rr)rrr Hsr N) rฺ Exceptionrrr r r r r rrrrฺs