ó
    úÞ j	  ã                  ó¼   • S SK Jr  S SKr\R                  (       a
  S SKrSSKJr   " S S\5      r " S S\5      r	 " S	 S
\5      r
 " S S\5      r " S S\5      rg)é    )ÚannotationsNé   )ÚResponsec                  ó   • \ rS rSrSrSrg)ÚHTTPXWSExceptioné   z$
Base exception class for HTTPX WS.
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r	   ó    ÚW/var/www/html/gaurav/venv/lib/python3.13/site-packages/httpx2/websockets/_exceptions.pyr   r      s   † ôr   r   c                  ó"   • \ rS rSrSrSS jrSrg)ÚWebSocketUpgradeErroré   zU
Raised when the initial connection didn't correctly upgrade to a WebSocket session.
c                ó   • Xl         g ©N©Úresponse)Úselfr   s     r   Ú__init__ÚWebSocketUpgradeError.__init__   s   € Ø �r   r   N)r   r   ÚreturnÚNone©r   r   r   r   r   r   r   r	   r   r   r   r      s   † ñ÷!r   r   c                  ó&   • \ rS rSrSrSSS jjrSrg)ÚWebSocketDisconnecté   zÝ
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.
Nc                ó0   • Xl         U=(       d    SU l        g )NÚ ©ÚcodeÚreason)r   r&   r'   s      r   r   ÚWebSocketDisconnect.__init__%   s   € ØŒ	Ø—l ˆ�r   r%   )iè  N)r&   Úintr'   z
str | Noner   r   r   r	   r   r   r!   r!      s   † ñ÷#ñ #r   r!   c                  ó"   • \ rS rSrSrSS jrSrg)ÚWebSocketInvalidTypeReceivedé*   z2
Raised when a event is not of the expected type.
c                ó   • Xl         g r   ©Úevent)r   r/   s     r   r   Ú%WebSocketInvalidTypeReceived.__init__/   s   € Ø�
r   r.   N)r/   zwsproto.events.Eventr   r   r   r	   r   r   r+   r+   *   s   † ñ÷r   r+   c                  ó   • \ rS rSrSrSrg)ÚWebSocketNetworkErroré3   z`
Raised when a network error occured,
typically if the underlying stream has closed or timeout.
r	   Nr
   r	   r   r   r2   r2   3   s   † ôr   r2   )Ú
__future__r   ÚtypingÚTYPE_CHECKINGÚwsprotoÚ_modelsr   Ú	Exceptionr   r   r!   r+   r2   r	   r   r   Ú<module>r:      sZ   ðÝ "ã à	××Ûå"ô�yô ô!Ð,ô !ô#Ð*ô #ô Ð#3ô ôÐ,õ r   