a
   	ฐ๋่@ใ                   @   s   d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZG dd deZ	dS )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                   @   s   e Zd ZdZdS )ฺWebSocketExceptionz$
    websocket exception class.
    Nฉฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__ฉ r   r   ๚9/usr/lib/python3.9/site-packages/websocket/_exceptions.pyr      s   r   c                   @   s   e Zd ZdZdS )ฺWebSocketProtocolExceptionzN
    If the websocket protocol is invalid, this exception will be raised.
    Nr   r   r   r   r   r	   $   s   r	   c                   @   s   e Zd ZdZdS )ฺWebSocketPayloadExceptionzM
    If the websocket payload is invalid, this exception will be raised.
    Nr   r   r   r   r   r
   +   s   r
   c                   @   s   e Zd ZdZdS )ฺ"WebSocketConnectionClosedExceptionzq
    If remote host closed the connection or some network error happened,
    this exception will be raised.
    Nr   r   r   r   r   r   2   s   r   c                   @   s   e Zd ZdZdS )ฺWebSocketTimeoutExceptionz\
    WebSocketTimeoutException will be raised at socket timeout during read/write data.
    Nr   r   r   r   r   r   :   s   r   c                   @   s   e Zd ZdZdS )ฺWebSocketProxyExceptionzK
    WebSocketProxyException will be raised when proxy error occurred.
    Nr   r   r   r   r   r   A   s   r   c                       s"   e Zd ZdZd fdd	Z  ZS )ฺWebSocketBadStatusExceptionz[
    WebSocketBadStatusException will be raised when we get bad handshake status code.
    Nc                    s,   |||f }t t|  |ก || _|| _d S )N)ฺsuperr   ฺ__init__ฺstatus_codeฺresp_headers)ฺselfฺmessager   Zstatus_messager   ฺmsgฉฺ	__class__r   r   r   M   s    z$WebSocketBadStatusException.__init__)NN)r   r   r   r   r   ฺ__classcell__r   r   r   r   r   H   s   r   c                   @   s   e Zd ZdZdS )ฺWebSocketAddressExceptionzW
    If the websocket address info cannot be found, this exception will be raised.
    Nr   r   r   r   r   r   T   s   r   N)
r   ฺ	Exceptionr   r	   r
   r   r   r   r   r   r   r   r   r   ฺ<module>   s   