U
    Ñyr[*	  ã                   @   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   ú7/usr/lib/python3/dist-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)ÚselfÚmessager   Zstatus_messageÚmsg©Ú	__class__r   r   r   M   s    z$WebSocketBadStatusException.__init__)N)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   R   s   r   N)
r   Ú	Exceptionr   r	   r
   r   r   r   r   r   r   r   r   r   Ú<module>   s   
