ó
    °"³j™"  ã                  ó  • S r SSKJr  SSKrSSKrSSKJr  \R                  (       a  SSKJ	r	J
r
  / SQr " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r " S( S)\5      r " S* S+\5      r " S, S-\5      r  " S. S/\5      r! " S0 S1\5      r" " S2 S3\5      r# " S4 S5\5      r$ " S6 S7\5      r% " S8 S9\&5      r' " S: S;\'5      r( " S< S=\'5      r) " S> S?\'5      r* " S@ SA\'5      r+\RX                  SCSDSB jj5       r-g)Eul  
Our exception hierarchy:

* HTTPError
  x RequestError
    + TransportError
      - TimeoutException
        Â· ConnectTimeout
        Â· ReadTimeout
        Â· WriteTimeout
        Â· PoolTimeout
      - NetworkError
        Â· ConnectError
        Â· ReadError
        Â· WriteError
        Â· CloseError
      - ProtocolError
        Â· LocalProtocolError
        Â· RemoteProtocolError
      - ProxyError
      - UnsupportedProtocol
    + DecodingError
    + TooManyRedirects
  x HTTPStatusError
* InvalidURL
* CookieConflict
* StreamError
  x StreamConsumed
  x StreamClosed
  x ResponseNotRead
  x RequestNotRead
é    )ÚannotationsN)Ú	Generatoré   )ÚRequestÚResponse)Ú
CloseErrorÚConnectErrorÚConnectTimeoutÚCookieConflictÚDecodingErrorÚ	HTTPErrorÚHTTPStatusErrorÚ
InvalidURLÚLocalProtocolErrorÚNetworkErrorÚPoolTimeoutÚProtocolErrorÚ
ProxyErrorÚ	ReadErrorÚReadTimeoutÚRemoteProtocolErrorÚRequestErrorÚRequestNotReadÚResponseNotReadÚStreamClosedÚStreamConsumedÚStreamErrorÚTimeoutExceptionÚTooManyRedirectsÚTransportErrorÚUnsupportedProtocolÚ
WriteErrorÚWriteTimeoutc                  ó   • \ rS rSrSrSrg)ÚHTTPXDeprecationWarningéK   aO  A custom deprecation warning for HTTPX.

Unlike the built-in `DeprecationWarning`, this inherits from `UserWarning` to ensure it is visible by default,
helping users discover deprecated features without needing to enable warnings explicitly.

Reference: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r'   ó    ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/httpx2/_exceptions.pyr%   r%   K   ó   † ôr/   r%   c                  ól   ^ • \ rS rSrSrSU 4S jjr\SS j5       r\R                  S	S j5       rSr	U =r
$ )
r   éU   ad  
Base class for `RequestError` and `HTTPStatusError`.

Useful for `try...except` blocks when issuing a request,
and then calling `.raise_for_status()`.

For example:

```
try:
    response = httpx2.get("https://www.example.com")
    response.raise_for_status()
except httpx2.HTTPError as exc:
    print(f"HTTP Exception for {exc.request.url} - {exc}")
```
c                ó2   >• [         TU ]  U5        S U l        g ©N©ÚsuperÚ__init__Ú_request©ÚselfÚmessageÚ	__class__s     €r0   r8   ÚHTTPError.__init__g   s   ø€ Ü‰Ñ˜Ô!Ø(,ˆ�r/   c                óJ   • U R                   c  [        S5      eU R                   $ )Nz'The .request property has not been set.)r9   ÚRuntimeError)r;   s    r0   ÚrequestÚHTTPError.requestk   s"   € à�=‰=Ñ ÜÐHÓIÐIØ�}‰}Ðr/   c                ó   • Xl         g r5   ©r9   )r;   rA   s     r0   rA   rB   q   s   € à�r/   rD   ©r<   ÚstrÚreturnÚNone)rG   r   )rA   r   rG   rH   )r)   r*   r+   r,   r-   r8   ÚpropertyrA   Úsetterr.   Ú__classcell__©r=   s   @r0   r   r   U   s9   ø† ñ÷"-ð óó ðð
 ‡^�^ó ó ö r/   r   c                  ó8   ^ • \ rS rSrSrSS.SU 4S jjjrSrU =r$ )r   év   zK
Base class for all exceptions that may occur when issuing a `.request()`.
N)rA   c               ó0   >• [         TU ]  U5        X l        g r5   r6   )r;   r<   rA   r=   s      €r0   r8   ÚRequestError.__init__{   s   ø€ Ü‰Ñ˜Ô!ð  �r/   rD   )r<   rF   rA   úRequest | NonerG   rH   ©r)   r*   r+   r,   r-   r8   r.   rK   rL   s   @r0   r   r   v   s   ø† ñð CG÷  ÷  ð  r/   r   c                  ó   • \ rS rSrSrSrg)r    é†   zM
Base class for all exceptions that occur at the level of the Transport API.
r'   Nr(   r'   r/   r0   r    r    †   ó   † ôr/   r    c                  ó   • \ rS rSrSrSrg)r   é�   zA
The base class for timeout errors.

An operation has timed out.
r'   Nr(   r'   r/   r0   r   r   �   ó   † ôr/   r   c                  ó   • \ rS rSrSrSrg)r
   é—   z)
Timed out while connecting to the host.
r'   Nr(   r'   r/   r0   r
   r
   —   rU   r/   r
   c                  ó   • \ rS rSrSrSrg)r   é�   z/
Timed out while receiving data from the host.
r'   Nr(   r'   r/   r0   r   r   �   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r#   é£   z+
Timed out while sending data to the host.
r'   Nr(   r'   r/   r0   r#   r#   £   rU   r/   r#   c                  ó   • \ rS rSrSrSrg)r   é©   z:
Timed out waiting to acquire a connection from the pool.
r'   Nr(   r'   r/   r0   r   r   ©   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r   é²   zc
The base class for network-related errors.

An error occurred while interacting with the network.
r'   Nr(   r'   r/   r0   r   r   ²   rX   r/   r   c                  ó   • \ rS rSrSrSrg)r   éº   z*
Failed to receive data from the network.
r'   Nr(   r'   r/   r0   r   r   º   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r"   éÀ   z*
Failed to send data through the network.
r'   Nr(   r'   r/   r0   r"   r"   À   rU   r/   r"   c                  ó   • \ rS rSrSrSrg)r	   éÆ   z#
Failed to establish a connection.
r'   Nr(   r'   r/   r0   r	   r	   Æ   rU   r/   r	   c                  ó   • \ rS rSrSrSrg)r   éÌ   z
Failed to close a connection.
r'   Nr(   r'   r/   r0   r   r   Ì   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r   éÕ   z:
An error occurred while establishing a proxy connection.
r'   Nr(   r'   r/   r0   r   r   Õ   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r!   éÛ   zt
Attempted to make a request to an unsupported protocol.

For example issuing a request to `ftp://www.example.com`.
r'   Nr(   r'   r/   r0   r!   r!   Û   rX   r/   r!   c                  ó   • \ rS rSrSrSrg)r   éã   z
The protocol was violated.
r'   Nr(   r'   r/   r0   r   r   ã   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r   éé   zÒ
A protocol was violated by the client.

For example if the user instantiated a `Request` instance explicitly,
failed to include the mandatory `Host:` header, and then issued it directly
using `client.send()`.
r'   Nr(   r'   r/   r0   r   r   é   r1   r/   r   c                  ó   • \ rS rSrSrSrg)r   éó   zR
The protocol was violated by the server.

For example, returning malformed HTTP.
r'   Nr(   r'   r/   r0   r   r   ó   rX   r/   r   c                  ó   • \ rS rSrSrSrg)r   éþ   z?
Decoding of the response failed, due to a malformed encoding.
r'   Nr(   r'   r/   r0   r   r   þ   rU   r/   r   c                  ó   • \ rS rSrSrSrg)r   i  z
Too many redirects.
r'   Nr(   r'   r/   r0   r   r     rU   r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i  zp
The response had an error HTTP status of 4xx or 5xx.

May be raised when calling `response.raise_for_status()`
c               ó<   >• [         TU ]  U5        X l        X0l        g r5   )r7   r8   rA   Úresponse)r;   r<   rA   rz   r=   s       €r0   r8   ÚHTTPStatusError.__init__  s   ø€ Ü‰Ñ˜Ô!ØŒØ �r/   )rA   rz   )r<   rF   rA   r   rz   r   rG   rH   rR   rL   s   @r0   r   r     s   ø† ñ÷!õ !r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i  z/
URL is improperly formed or cannot be parsed.
c                ó$   >• [         TU ]  U5        g r5   ©r7   r8   r:   s     €r0   r8   ÚInvalidURL.__init__  ó   ø€ Ü‰Ñ˜Õ!r/   r'   rE   rR   rL   s   @r0   r   r     s   ø† ñ÷"õ "r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i#  zz
Attempted to lookup a cookie by name, but multiple cookies existed.

Can occur when calling `response.cookies.get(...)`.
c                ó$   >• [         TU ]  U5        g r5   r~   r:   s     €r0   r8   ÚCookieConflict.__init__*  r€   r/   r'   rE   rR   rL   s   @r0   r   r   #  s   ø† ñ÷"õ "r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i4  zw
The base class for stream exceptions.

The developer made an error in accessing the request stream in
an invalid way.
c                ó$   >• [         TU ]  U5        g r5   r~   r:   s     €r0   r8   ÚStreamError.__init__<  r€   r/   r'   rE   rR   rL   s   @r0   r   r   4  s   ø† ñ÷"õ "r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i@  zQ
Attempted to read or stream content, but the content has already
been streamed.
c                ó(   >• Sn[         TU ]  U5        g )Na]  Attempted to read or stream some content, but the content has already been streamed. For requests, this could be due to passing a generator as request content, and then receiving a redirect response or a secondary request as part of an authentication flow.For responses, this could be due to attempting to stream the response content more than once.r~   r:   s     €r0   r8   ÚStreamConsumed.__init__F  s   ø€ ð&ð 	ô 	‰Ñ˜Õ!r/   r'   ©rG   rH   rR   rL   s   @r0   r   r   @  s   ø† ñ÷
	"õ 	"r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   iR  zP
Attempted to read or stream response content, but the request has been
closed.
c                ó(   >• Sn[         TU ]  U5        g )NzDAttempted to read or stream content, but the stream has been closed.r~   r:   s     €r0   r8   ÚStreamClosed.__init__X  s   ø€ ØXˆÜ‰Ñ˜Õ!r/   r'   rŠ   rR   rL   s   @r0   r   r   R  s   ø† ñ÷
"õ "r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   i]  zQ
Attempted to access streaming response content, without having called `read()`.
c                ó(   >• Sn[         TU ]  U5        g )NzOAttempted to access streaming response content, without having called `read()`.r~   r:   s     €r0   r8   ÚResponseNotRead.__init__b  s   ø€ ØcˆÜ‰Ñ˜Õ!r/   r'   rŠ   rR   rL   s   @r0   r   r   ]  ó   ø† ñ÷"õ "r/   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   ig  zP
Attempted to access streaming request content, without having called `read()`.
c                ó(   >• Sn[         TU ]  U5        g )NzNAttempted to access streaming request content, without having called `read()`.r~   r:   s     €r0   r8   ÚRequestNotRead.__init__l  s   ø€ ØbˆÜ‰Ñ˜Õ!r/   r'   rŠ   rR   rL   s   @r0   r   r   g  r‘   r/   r   c              #  óP   #   •  Sv •  g! [          a  nU b  Xl        UeSnAff = f7f)z‹
A context manager that can be used to attach the given request context
to any `RequestError` exceptions that are raised within the block.
N)r   rA   )rA   Úexcs     r0   Úrequest_contextr—   q  s,   é € ðÜøÜó ØÑØ!ŒKØˆ	ûðüs   ‚&„	 ˆ&‰
#“ž#£&r5   )rA   rQ   rG   zGenerator[None]).r-   Ú
__future__r   Ú
contextlibÚtypingÚcollections.abcr   ÚTYPE_CHECKINGÚ_modelsr   r   Ú__all__ÚUserWarningr%   Ú	Exceptionr   r   r    r   r
   r   r#   r   r   r   r"   r	   r   r   r!   r   r   r   r   r   r   r   r   r@   r   r   r   r   r   Úcontextmanagerr—   r'   r/   r0   Ú<module>r¢      s¨  ðñõB #ã Û Ý %à	××ß*ò€ô@˜kô ô �	ô  ôB �9ô  ô �\ô ô�~ô ôÐ%ô ôÐ"ô ôÐ#ô ôÐ"ô ô�>ô ô�ô ô�ô ô�<ô ô�ô ô�ô ô˜.ô ô�Nô ô˜ô ô˜-ô ô�Lô ô�|ô ô
!�iô 
!ô"�ô "ô"�Yô "ô"	"�,ô 	"ô"�[ô "ô$"�;ô "ô"�kô "ô"�[ô "ð ×Ñõ
ó ñ
r/   