
    f	                         d Z 	  G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z	y)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                       e Zd ZdZy)WebSocketExceptionz$
    websocket exception class.
    N__name__
__module____qualname____doc__     (lib/third_party/websocket/_exceptions.pyr   r           	r
   r   c                       e Zd ZdZy)WebSocketProtocolExceptionzN
    If the websocket protocol is invalid, this exception will be raised.
    Nr   r	   r
   r   r   r   $   r   r
   r   c                       e Zd ZdZy)WebSocketPayloadExceptionzM
    If the websocket payload is invalid, this exception will be raised.
    Nr   r	   r
   r   r   r   +   r   r
   r   c                       e Zd ZdZy)"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
   r   c                       e Zd ZdZy)WebSocketTimeoutExceptionz\
    WebSocketTimeoutException will be raised at socket timeout during read/write data.
    Nr   r	   r
   r   r   r   :   r   r
   r   c                       e Zd ZdZy)WebSocketProxyExceptionzK
    WebSocketProxyException will be raised when proxy error occurred.
    Nr   r	   r
   r   r   r   A   r   r
   r   c                   $     e Zd ZdZd fd	Z xZS )WebSocketBadStatusExceptionz[
    WebSocketBadStatusException will be raised when we get bad handshake status code.
    c                 V    |||fz  }t         t        |   |       || _        || _        y )N)superr   __init__status_coderesp_headers)selfmessager   status_messager   msg	__class__s         r   r   z$WebSocketBadStatusException.__init__M   s2    n55)49#>&(r
   )NN)r   r   r   r   r   __classcell__)r"   s   @r   r   r   H   s    ) )r
   r   c                       e Zd ZdZy)WebSocketAddressExceptionzW
    If the websocket address info cannot be found, this exception will be raised.
    Nr   r	   r
   r   r%   r%   S   r   r
   r%   N)
r   	Exceptionr   r   r   r   r   r   r   r%   r	   r
   r   <module>r'      sv   .
	 		!3 		 2 		); 		 2 		0 		)"4 	)	 2 	r
   