
=\jb	  ใ               @   sบ   d  Z  Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd	 d
   d
 e  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z	 d S)z
Define WebSocket exceptions
c               @   s   e  Z d  Z d Z d S)ฺWebSocketExceptionz$
    WebSocket exception class.
    N)ฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__ฉ r   r   ๚A/tmp/pip-build-jxowagp5/websocket-client/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.
    N)r   r   r   r   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.
    N)r   r   r   r   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.
    N)r   r   r   r   r   r   r   r   r
   0   s   r
   c               @   s   e  Z d  Z d Z d S)ฺWebSocketTimeoutExceptionz\
    WebSocketTimeoutException will be raised at socket timeout during read/write data.
    N)r   r   r   r   r   r   r   r   r   8   s   r   c               @   s   e  Z d  Z d Z d S)ฺWebSocketProxyExceptionzK
    WebSocketProxyException will be raised when proxy error occurred.
    N)r   r   r   r   r   r   r   r   r   ?   s   r   c                   s.   e  Z d  Z d Z d d   f d d  Z   S)ฺWebSocketBadStatusExceptionz[
    WebSocketBadStatusException will be raised when we get bad handshake status code.
    Nc                s<   | | | f } t  t |   j |  | |  _ | |  _ d  S)N)ฺsuperr   ฺ__init__ฺstatus_codeฺresp_headers)ฺselfฺmessager   Zstatus_messager   ฺmsg)ฺ	__class__r   r   r   K   s    	z$WebSocketBadStatusException.__init__)r   r   r   r   r   r   r   )r   r   r   F   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.
    N)r   r   r   r   r   r   r   r   r   R   s   r   N)
r   ฺ	Exceptionr   r   r	   r
   r   r   r   r   r   r   r   r   ฺ<module>   s   