§
    ëXÊj
  ã                  óÈ   — d dl mZ d dlZej        r
d dlZddlm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dS )é    )ÚannotationsNé   )ÚResponsec                  ó   — e Zd ZdZdS )ÚHTTPXWSExceptionz,
    Base exception class for HTTPX WS.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úNC:\Projects\Historical\venv\Lib\site-packages\httpx2/websockets/_exceptions.pyr   r      s   € € € € € ðð ð ð r   r   c                  ó   — e Zd ZdZdd„ZdS )	ÚWebSocketUpgradeErrorz]
    Raised when the initial connection didn't correctly upgrade to a WebSocket session.
    Úresponser   ÚreturnÚNonec                ó   — || _         d S ©N)r   )Úselfr   s     r   Ú__init__zWebSocketUpgradeError.__init__   s   € Ø ˆŒˆˆr   N)r   r   r   r   ©r	   r
   r   r   r   r   r   r   r   r      s2   € € € € € ðð ð!ð !ð !ð !ð !ð !r   r   c                  ó   — e Zd ZdZddd
„ZdS )ÚWebSocketDisconnectzù
    Raised when the server closed the WebSocket session.

    Args:
        code:
            The integer close code to indicate why the connection has closed.
        reason:
            Additional reasoning for why the connection has closed.
    éè  NÚcodeÚintÚreasonú
str | Noner   r   c                ó&   — || _         |pd| _        d S )NÚ )r   r   )r   r   r   s      r   r   zWebSocketDisconnect.__init__%   s   € ØˆŒ	Ø�l ˆŒˆˆr   )r   N)r   r   r   r    r   r   r   r   r   r   r   r      s7   € € € € € ðð ð#ð #ð #ð #ð #ð #ð #r   r   c                  ó   — e Zd ZdZdd„ZdS )	ÚWebSocketInvalidTypeReceivedz;
    Raised when an event is not of the expected type.
    Úeventúwsproto.events.Eventr   r   c                ó   — || _         d S r   )r%   )r   r%   s     r   r   z%WebSocketInvalidTypeReceived.__init__/   s   € ØˆŒ
ˆ
ˆ
r   N)r%   r&   r   r   r   r   r   r   r$   r$   *   s2   € € € € € ðð ðð ð ð ð ð r   r$   c                  ó   — e Zd ZdZdS )ÚWebSocketNetworkErrorzl
    Raised when a network error occured,
    typically if the underlying stream has closed or timeout.
    Nr   r   r   r   r)   r)   3   s   € € € € € ðð ð ð r   r)   )Ú
__future__r   ÚtypingÚTYPE_CHECKINGÚwsprotoÚ_modelsr   Ú	Exceptionr   r   r   r$   r)   r   r   r   ú<module>r0      s&  ðØ "Ð "Ð "Ð "Ð "Ð "à €€€à	Ôð #Ø€N€N€Nà"Ð"Ð"Ð"Ð"Ð"ðð ð ð ð �yñ ô ð ð!ð !ð !ð !ð !Ð,ñ !ô !ð !ð#ð #ð #ð #ð #Ð*ñ #ô #ð #ð ð ð ð ð Ð#3ñ ô ð ðð ð ð ð Ð,ñ ô ð ð ð r   