o
    ¾À•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 )z
Define WebSocket exceptions
c                   @   ó   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      ó    r   c                   @   r   )ÚWebSocketProtocolExceptionzN
    If the WebSocket protocol is invalid, this exception will be raised.
    Nr   r   r   r   r	   r       r
   r   c                   @   r   )ÚWebSocketPayloadExceptionzM
    If the WebSocket payload is invalid, this exception will be raised.
    Nr   r   r   r   r	   r   '   r
   r   c                   @   r   )Ú"WebSocketConnectionClosedExceptionzq
    If remote host closed the connection or some network error happened,
    this exception will be raised.
    Nr   r   r   r   r	   r   .   s    r   c                   @   r   )ÚWebSocketTimeoutExceptionz\
    WebSocketTimeoutException will be raised at socket timeout during read/write data.
    Nr   r   r   r   r	   r   6   r
   r   c                   @   r   )ÚWebSocketProxyExceptionzK
    WebSocketProxyException will be raised when proxy error occurred.
    Nr   r   r   r   r	   r   =   r
   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 ƒ  |¡ || _|| _d S )N)ÚsuperÚ__init__Ústatus_codeÚresp_headers)ÚselfÚmessager   Zstatus_messager   Úmsg©Ú	__class__r   r	   r   I   s   
z$WebSocketBadStatusException.__init__)NN)r   r   r   r   r   Ú__classcell__r   r   r   r	   r   D   s    r   c                   @   r   )ÚWebSocketAddressExceptionzW
    If the websocket address info cannot be found, this exception will be raised.
    Nr   r   r   r   r	   r   P   r
   r   N)
r   Ú	Exceptionr   r   r   r   r   r   r   r   r   r   r   r	   Ú<module>   s    