+
     hO!  c                  s   R t ^ RIHt ^ RIt^ RIt]P
                  '       d	   ^RIHtHt . R>O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 ! 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']PP                  R?R< R= ll4       t)R# )@ul  
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)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                  sr   a  ] tR t^Jt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   ab  
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 = httpx.get("https://www.example.com")
    response.raise_for_status()
except httpx.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None Zformat   "6/usr/lib/python3.14/site-packages/httpx/_exceptions.py__annotate__HTTPError.__annotate__\   s     - - - -    c                	s4   < \         SV `  V4       R V n        R # Nsuper__init___requestselfr"   	__class__   &&r)   r0   ZHTTPError.__init__\   s    !(,r,   c                   V ^8  d   QhRR/# )r!   r$   r   r&   r'   r(   r)   r*   r+   a   s       r,   c                	sL    V P                   f   \        R4      hV P                   # )Nz'The .request property has not been set.)r1   RuntimeError)r3   s   &r)   requestHTTPError.request`   s"    == HII}}r,   c               r   )r!   r8   r   r$   r%   r&   r'   r(   r)   r*   r+   g   s        w  4  r,   c                	s    Wn         R # r-   r1   )r3   r8   s   &&r)   r8   r9   f   s    r,   r:   )__name__
__module____qualname____firstlineno____doc__r0   Zpropertyr8   Zsetter__static_attributes____classcell__r4      @r)   r   r   J   s>    "- -  
 ^^   r,   c                  s:   a  ] tR t^kt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()`.
r8   Nc               s$    V ^8  d   QhRRRRRR/# )r!   r"   r#   r8   Request | Noner$   r%   r&   r'   r(   r)   r*   ZRequestError.__annotate__p   s!            4  r,   c               	s2   < \         SV `  V4       W n        R # r-   r.   )r3   r"   r8   r4   s   &&$r)   r0   ZRequestError.__init__p   s    !  r,   r:   r;   r<   r=   r>   r?   r0   r@   rA   rB   rC   r)   r   r   k   s     $      r,   c                  s    ] 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&   Nr;   r<   r=   r>   r?   r@   r&   r,   r)   r   r   {       r,   c                  s    ] tR t^tRtRtR# )r   zA
The base class for timeout errors.

An operation has timed out.
r&   NrF   r&   r,   r)   r   r          r,   c                  s    ] tR t^tRtRtR# )r   z)
Timed out while connecting to the host.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z/
Timed out while receiving data from the host.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z+
Timed out while sending data to the host.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z:
Timed out waiting to acquire a connection from the pool.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] 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&   NrF   r&   r,   r)   r   r      rH   r,   c                  s    ] tR t^tRtRtR# )r   z*
Failed to receive data from the network.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z*
Failed to send data through the network.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z#
Failed to establish a connection.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z
Failed to close a connection.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z:
An error occurred while establishing a proxy connection.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] 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&   NrF   r&   r,   r)   r   r      rH   r,   c                  s    ] tR t^tRtRtR# )r   z
The protocol was violated.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] 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&   NrF   r&   r,   r)   r   r      s    r,   c                  s    ] tR t^tRtRtR# )r   zR
The protocol was violated by the server.

For example, returning malformed HTTP.
r&   NrF   r&   r,   r)   r   r      rH   r,   c                  s    ] tR t^tRtRtR# )r   z?
Decoding of the response failed, due to a malformed encoding.
r&   NrF   r&   r,   r)   r   r      rG   r,   c                  s    ] tR t^tRtRtR# )r   z
Too many redirects.
r&   NrF   r&   r,   r)   r   r      rG   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               s(    V ^8  d   QhRRRRRRRR/# )	r!   r"   r#   r8   r   responser   r$   r%   r&   r'   r(   r)   r*   ZHTTPStatusError.__annotate__	  s)     ! ! ! !H !QU !r,   c               	s>   < \         SV `  V4       W n        W0n        R # r-   )r/   r0   r8   rJ   )r3   r"   r8   rJ   r4   s   &&$$r)   r0   ZHTTPStatusError.__init__	  s    ! r,   )r8   rJ   rE   rB   rC   r)   r	   r	     s    ! !r,   c                  rI   )r
   i  z/
URL is improperly formed or cannot be parsed.
c               r   r    r&   r'   r(   r)   r*   ZInvalidURL.__annotate__       " " " "r,   c                	&   < \         SV `  V4       R # r-   r/   r0   r2   r5   r)   r0   ZInvalidURL.__init__      !r,   r&   rE   rB   rC   r)   r
   r
     s    " "r,   c                  rI   )r   i  zz
Attempted to lookup a cookie by name, but multiple cookies existed.

Can occur when calling `response.cookies.get(...)`.
c               r   r    r&   r'   r(   r)   r*   ZCookieConflict.__annotate__  rK   r,   c                	rL   r-   rM   r2   r5   r)   r0   ZCookieConflict.__init__  rN   r,   r&   rE   rB   rC   r)   r   r     s    " "r,   c                  rI   )r   i)  zw
The base class for stream exceptions.

The developer made an error in accessing the request stream in
an invalid way.
c               r   r    r&   r'   r(   r)   r*   ZStreamError.__annotate__1  rK   r,   c                	rL   r-   rM   r2   r5   r)   r0   ZStreamError.__init__1  rN   r,   r&   rE   rB   rC   r)   r   r   )  s    " "r,   c                  rI   )r   i5  zQ
Attempted to read or stream content, but the content has already
been streamed.
c               r6   r!   r$   r%   r&   r'   r(   r)   r*   ZStreamConsumed.__annotate__;  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.NrM   r2      & r)   r0   ZStreamConsumed.__init__;  s    & 	 	!r,   r&   rE   rB   rC   r)   r   r   5  s    
	" 	"r,   c                  rI   )r   iG  zP
Attempted to read or stream response content, but the request has been
closed.
c               r6   rO   r&   r'   r(   r)   r*   ZStreamClosed.__annotate__M  s     " "$ "r,   c                	rP   )zDAttempted to read or stream content, but the stream has been closed.NrM   r2   rQ   r)   r0   ZStreamClosed.__init__M  s    U 	 	!r,   r&   rE   rB   rC   r)   r   r   G  s    
" "r,   c                  rI   )r   iT  zQ
Attempted to access streaming response content, without having called `read()`.
c               r6   rO   r&   r'   r(   r)   r*   ZResponseNotRead.__annotate__Y       " "$ "r,   c                	rP   )zOAttempted to access streaming response content, without having called `read()`.NrM   r2   rQ   r)   r0   ZResponseNotRead.__init__Y      / 	 	!r,   r&   rE   rB   rC   r)   r   r   T      " "r,   c                  rI   )r   ia  zP
Attempted to access streaming request content, without having called `read()`.
c               r6   rO   r&   r'   r(   r)   r*   ZRequestNotRead.__annotate__f  rR   r,   c                	rP   )zNAttempted to access streaming request content, without having called `read()`.NrM   r2   rQ   r)   r0   ZRequestNotRead.__init__f  rS   r,   r&   rE   rB   rC   r)   r   r   a  rT   r,   c               r   )r!   r8   rD   r$   ztyping.Iterator[None]r&   r'   r(   r)   r*   r*   o  s      r,   c              #  sV   "    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   r8   )r8   Zexcs   & r)   request_contextrU   n  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?   Z
__future__r    Z
contextlibZtypingZTYPE_CHECKINGZ_modelsr   r   Z__all__Z	Exceptionr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r7   r   r   r   r   r   ZcontextmanagerrU   r&   r,   r)   <module>rV      s  B #  	*@ 	  B 9   \ ~ % " # " >   <   . N  - L | 
!i 
!" ""Y ""	", 	""[ "$
"; 
"
"k 
"
"[ 
"  r,   