+
    n'Ïj™"  ã                  ó  € R t ^ RIHt ^ RIt^ RIt^ RIHt ]P                  '       d	   ^RIH	t	H
t
 . RAOt ! R! R"]4      t ! R# R
]4      t ! R$ R]4      t ! R% R]4      t ! R& R]4      t ! R' R]4      t ! R( R]4      t ! R) R ]4      t ! R* R]4      t ! R+ R]4      t ! R, R]4      t ! R- R]4      t ! R. R]4      t ! R/ R]4      t ! R0 R]4      t ! R1 R]4      t ! R2 R]4      t ! R3 R]4      t ! R4 R]4      t  ! R5 R	]4      t! ! R6 R]4      t" ! R7 R]4      t# ! R8 R]4      t$ ! R9 R]4      t% ! R: R]&4      t' ! R; R]'4      t( ! R< R]'4      t) ! R= R]'4      t* ! R> R]'4      t+]PX                  RBR? R@ ll4       t-R# )Cul  
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                  ó   € ] tR t^KtRtRtR# )ÚHTTPXDeprecationWarningaO  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$   ó    ÚL/opt/data/cache/scratch/pip-target-lhm_ju4v/lib/python/httpx2/_exceptions.pyr#   r#   K   ó   † õr,   r#   c                  ór   a € ] tR t^UtRtR V 3R llt]R R l4       t]P                  R R l4       tRt	V ;t
# )	r   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               ó    € V ^8„  d   QhRRRR/# ©é   ÚmessageÚstrÚreturnÚNoner$   )Úformats   "r-   Ú__annotate__ÚHTTPError.__annotate__g   s   € ÷ -ñ - ð -¨ñ -r,   c                	ó4   <€ \         SV `  V4       R V n        R # ©N©ÚsuperÚ__init__Ú_request©Úselfr3   Ú	__class__s   &&€r-   r>   ÚHTTPError.__init__g   s   ø€ Ü‰Ñ˜Ô!Ø(,ˆŽr,   c               ó   € V ^8„  d   QhRR/# )r2   r5   r   r$   )r7   s   "r-   r8   r9   l   s   € ÷ ñ ˜ñ r,   c                	óL   € V P                   f   \        R4      hV P                   # )Nz'The .request property has not been set.)r?   ÚRuntimeError)rA   s   &r-   ÚrequestÚHTTPError.requestk   s"   € à�=‰=Ò ÜÐHÓIÐIØ�}‰}Ðr,   c               ó    € V ^8„  d   QhRRRR/# )r2   rG   r   r5   r6   r$   )r7   s   "r-   r8   r9   r   s   € ÷  ñ  ˜wð  ¨4ñ  r,   c                	ó   € Wn         R # r;   ©r?   )rA   rG   s   &&r-   rG   rH   q   s   € àŽr,   rK   )r&   r'   r(   r)   r*   r>   ÚpropertyrG   Úsetterr+   Ú__classcell__©rB   s   @r-   r   r   U   s>   ø† ñ÷"-ð -ð ôó ðð
 ‡^�^ô ó ö r,   c                  ó:   a € ] tR t^vtRtRR/R V 3R llltRtV ;t# )r   zK
Base class for all exceptions that may occur when issuing a `.request()`.
rG   Nc               ó$   € V ^8„  d   QhRRRRRR/# )r2   r3   r4   rG   úRequest | Noner5   r6   r$   )r7   s   "r-   r8   ÚRequestError.__annotate__{   s!   € ÷  ñ   ð  °ð  È4ñ  r,   c               	ó2   <€ \         SV `  V4       W n        R # r;   r<   )rA   r3   rG   rB   s   &&$€r-   r>   ÚRequestError.__init__{   s   ø€ Ü‰Ñ˜Ô!ð  Žr,   rK   ©r&   r'   r(   r)   r*   r>   r+   rN   rO   s   @r-   r   r   v   s   ø† ñð À$÷  ÷  ð  r,   c                  ó   € ] tR t^†tRtRtR# )r   zM
Base class for all exceptions that occur at the level of the Transport API.
r$   Nr%   r$   r,   r-   r   r   †   ó   † õr,   c                  ó   € ] tR t^�tRtRtR# )r   zA
The base class for timeout errors.

An operation has timed out.
r$   Nr%   r$   r,   r-   r   r   �   ó   † õr,   c                  ó   € ] tR t^—tRtRtR# )r   z)
Timed out while connecting to the host.
r$   Nr%   r$   r,   r-   r   r   —   rX   r,   c                  ó   € ] tR t^�tRtRtR# )r   z/
Timed out while receiving data from the host.
r$   Nr%   r$   r,   r-   r   r   �   rX   r,   c                  ó   € ] tR t^£tRtRtR# )r!   z+
Timed out while sending data to the host.
r$   Nr%   r$   r,   r-   r!   r!   £   rX   r,   c                  ó   € ] tR t^©tRtRtR# )r   z:
Timed out waiting to acquire a connection from the pool.
r$   Nr%   r$   r,   r-   r   r   ©   rX   r,   c                  ó   € ] tR t^²tRtRtR# )r   zc
The base class for network-related errors.

An error occurred while interacting with the network.
r$   Nr%   r$   r,   r-   r   r   ²   rZ   r,   c                  ó   € ] tR t^ºtRtRtR# )r   z*
Failed to receive data from the network.
r$   Nr%   r$   r,   r-   r   r   º   rX   r,   c                  ó   € ] tR t^ÀtRtRtR# )r    z*
Failed to send data through the network.
r$   Nr%   r$   r,   r-   r    r    À   rX   r,   c                  ó   € ] tR t^ÆtRtRtR# )r   z#
Failed to establish a connection.
r$   Nr%   r$   r,   r-   r   r   Æ   rX   r,   c                  ó   € ] tR t^ÌtRtRtR# )r   z
Failed to close a connection.
r$   Nr%   r$   r,   r-   r   r   Ì   rX   r,   c                  ó   € ] tR t^ÕtRtRtR# )r   z:
An error occurred while establishing a proxy connection.
r$   Nr%   r$   r,   r-   r   r   Õ   rX   r,   c                  ó   € ] tR t^ÛtRtRtR# )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,   r-   r   r   Û   rZ   r,   c                  ó   € ] tR t^ãtRtRtR# )r   z
The protocol was violated.
r$   Nr%   r$   r,   r-   r   r   ã   rX   r,   c                  ó   € ] tR t^étRtRtR# )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,   r-   r   r   é   r.   r,   c                  ó   € ] tR t^ótRtRtR# )r   zR
The protocol was violated by the server.

For example, returning malformed HTTP.
r$   Nr%   r$   r,   r-   r   r   ó   rZ   r,   c                  ó   € ] tR t^þtRtRtR# )r
   z?
Decoding of the response failed, due to a malformed encoding.
r$   Nr%   r$   r,   r-   r
   r
   þ   rX   r,   c                  ó   € ] tR tRtRtRtR# )r   i  z
Too many redirects.
r$   Nr%   r$   r,   r-   r   r     rX   r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i  zp
The response had an error HTTP status of 4xx or 5xx.

May be raised when calling `response.raise_for_status()`
c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r2   r3   r4   rG   r   Úresponser   r5   r6   r$   )r7   s   "r-   r8   ÚHTTPStatusError.__annotate__  s)   € ÷ !ñ ! ð !°ð !ÀHð !ÐQUñ !r,   c               	ó>   <€ \         SV `  V4       W n        W0n        R # r;   )r=   r>   rG   rm   )rA   r3   rG   rm   rB   s   &&$$€r-   r>   ÚHTTPStatusError.__init__  s   ø€ Ü‰Ñ˜Ô!ØŒØ Žr,   )rG   rm   rV   rO   s   @r-   r   r     s   ø† ñ÷!ö !r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i  z/
URL is improperly formed or cannot be parsed.
c               ó    € V ^8„  d   QhRRRR/# r1   r$   )r7   s   "r-   r8   ÚInvalidURL.__annotate__  ó   € ÷ "ñ " ð "¨ñ "r,   c                	ó&   <€ \         SV `  V4       R # r;   ©r=   r>   r@   s   &&€r-   r>   ÚInvalidURL.__init__  ó   ø€ Ü‰Ñ˜Ö!r,   r$   rV   rO   s   @r-   r   r     s   ø† ñ÷"ö "r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r	   i#  zz
Attempted to lookup a cookie by name, but multiple cookies existed.

Can occur when calling `response.cookies.get(...)`.
c               ó    € V ^8„  d   QhRRRR/# r1   r$   )r7   s   "r-   r8   ÚCookieConflict.__annotate__*  rt   r,   c                	ó&   <€ \         SV `  V4       R # r;   rv   r@   s   &&€r-   r>   ÚCookieConflict.__init__*  rx   r,   r$   rV   rO   s   @r-   r	   r	   #  s   ø† ñ÷"ö "r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i4  zw
The base class for stream exceptions.

The developer made an error in accessing the request stream in
an invalid way.
c               ó    € V ^8„  d   QhRRRR/# r1   r$   )r7   s   "r-   r8   ÚStreamError.__annotate__<  rt   r,   c                	ó&   <€ \         SV `  V4       R # r;   rv   r@   s   &&€r-   r>   ÚStreamError.__init__<  rx   r,   r$   rV   rO   s   @r-   r   r   4  s   ø† ñ÷"ö "r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i@  zQ
Attempted to read or stream content, but the content has already
been streamed.
c               ó   € V ^8„  d   QhRR/# ©r2   r5   r6   r$   )r7   s   "r-   r8   ÚStreamConsumed.__annotate__F  s   € ÷ 	"ñ 	"˜$ñ 	"r,   c                	ó*   <€ R p\         SV `  V4       R# )a]  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.Nrv   r@   s   & €r-   r>   ÚStreamConsumed.__init__F  s   ø€ ð&ð 	ô 	‰Ñ˜Ö!r,   r$   rV   rO   s   @r-   r   r   @  s   ø† ñ÷
	"ö 	"r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   iR  zP
Attempted to read or stream response content, but the request has been
closed.
c               ó   € V ^8„  d   QhRR/# r…   r$   )r7   s   "r-   r8   ÚStreamClosed.__annotate__X  ó   € ÷ "ñ "˜$ñ "r,   c                	ó*   <€ R p\         SV `  V4       R# )zDAttempted to read or stream content, but the stream has been closed.Nrv   r@   s   & €r-   r>   ÚStreamClosed.__init__X  s   ø€ ØXˆÜ‰Ñ˜Ö!r,   r$   rV   rO   s   @r-   r   r   R  s   ø† ñ÷
"ö "r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i]  zQ
Attempted to access streaming response content, without having called `read()`.
c               ó   € V ^8„  d   QhRR/# r…   r$   )r7   s   "r-   r8   ÚResponseNotRead.__annotate__b  rŒ   r,   c                	ó*   <€ R p\         SV `  V4       R# )zOAttempted to access streaming response content, without having called `read()`.Nrv   r@   s   & €r-   r>   ÚResponseNotRead.__init__b  s   ø€ ØcˆÜ‰Ñ˜Ö!r,   r$   rV   rO   s   @r-   r   r   ]  ó   ø† ñ÷"ö "r,   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   ig  zP
Attempted to access streaming request content, without having called `read()`.
c               ó   € V ^8„  d   QhRR/# r…   r$   )r7   s   "r-   r8   ÚRequestNotRead.__annotate__l  rŒ   r,   c                	ó*   <€ R p\         SV `  V4       R# )zNAttempted to access streaming request content, without having called `read()`.Nrv   r@   s   & €r-   r>   ÚRequestNotRead.__init__l  s   ø€ ØbˆÜ‰Ñ˜Ö!r,   r$   rV   rO   s   @r-   r   r   g  r”   r,   c               ó    € V ^8„  d   QhRRRR/# )r2   rG   rR   r5   zGenerator[None]r$   )r7   s   "r-   r8   r8   r  s   € ÷ 
ñ 
˜^ð 
°ñ 
r,   c              #  óV   "  €  Rx € R#   \          d   pT e   Yn        ThRp?ii ; i5i)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   rG   )rG   Úexcs   & r-   Úrequest_contextr�   q  s,   é € ðÝøÜô ØÒØ!ŒKØˆ	ûðüs   ‚)„
 ˆ)Š&•!¡&¦))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!   r;   ).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	   rF   r   r   r   r   r   Úcontextmanagerr�   r$   r,   r-   Ú<module>r¨      s«  ðñõB #ã Û Ý %à	××Ðß*ò€ô@˜kô ô �	ô  ôB �9ô  ô �\ô ô�~ô ôÐ%ô ôÐ"ô ôÐ#ô ôÐ"ô ô�>ô ô�ô ô�ô ô�<ô ô�ô ô�ô ô˜.ô ô�Nô ô˜ô ô˜-ô ô�Lô ô�|ô ô
!�iô 
!ô"�ô "ô"�Yô "ô"	"�,ô 	"ô"�[ô "ô$"�;ô "ô"�kô "ô"�[ô "ð ×Ñö
ó ò
r,   