Ë
    Eü´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y)é    )ÚannotationsNé   )ÚResponsec                  ó   — e Zd ZdZy)ÚHTTPXWSExceptionz,
    Base exception class for HTTPX WS.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú[/root/workspace/ytshorts/venv/lib/python3.12/site-packages/httpx2/websockets/_exceptions.pyr   r      s   „ òr   r   c                  ó   — e Zd ZdZdd„Zy)ÚWebSocketUpgradeErrorz]
    Raised when the initial connection didn't correctly upgrade to a WebSocket session.
    c                ó   — || _         y ©N)Úresponse)Úselfr   s     r   Ú__init__zWebSocketUpgradeError.__init__   s	   € Ø ˆ�r   N)r   r   ÚreturnÚNone©r	   r
   r   r   r   r   r   r   r   r      s   „ ñô!r   r   c                  ó   — e Zd ZdZddd„Zy)Ú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.
    Nc                ó(   — || _         |xs d| _        y )NÚ )ÚcodeÚreason)r   r   r   s      r   r   zWebSocketDisconnect.__init__%   s   € ØˆŒ	Ø’l ˆ�r   )iè  N)r   Úintr   z
str | Noner   r   r   r   r   r   r   r      s   „ ñõ#r   r   c                  ó   — e Zd ZdZdd„Zy)ÚWebSocketInvalidTypeReceivedz;
    Raised when an event is not of the expected type.
    c                ó   — || _         y r   )Úevent)r   r$   s     r   r   z%WebSocketInvalidTypeReceived.__init__/   s	   € Øˆ�
r   N)r$   zwsproto.events.Eventr   r   r   r   r   r   r"   r"   *   s   „ ñôr   r"   c                  ó   — e Zd ZdZy)Ú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>r-      sZ   ðÝ "ã à	×ÒÛå"ô�yô ô!Ð,ô !ô#Ð*ô #ô Ð#3ô ôÐ,õ r   