+
    iO!                       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                  r   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 )formats   "d/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/httpx/_exceptions.py__annotate__HTTPError.__annotate__\   s     - - - -    c                	4   < \         SV `  V4       R V n        R # Nsuper__init___requestselfr%   	__class__s   &&r+   r3   HTTPError.__init__\   s    !(,r.   c                   V ^8  d   QhRR/# )r$   r'   r   r)   )r*   s   "r+   r,   r-   a   s       r.   c                	L    V P                   f   \        R4      hV P                   # )Nz'The .request property has not been set.)r4   RuntimeError)r6   s   &r+   requestHTTPError.request`   s"    == HII}}r.   c                    V ^8  d   QhRRRR/# )r$   r<   r   r'   r(   r)   )r*   s   "r+   r,   r-   g   s        w  4  r.   c                	    Wn         R # r0   r4   )r6   r<   s   &&r+   r<   r=   f   s    r.   r@   )__name__
__module____qualname____firstlineno____doc__r3   propertyr<   setter__static_attributes____classcell__r7   s   @r+   r
   r
   J   s>    "- -  
 ^^   r.   c                  :   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()`.
r<   Nc               $    V ^8  d   QhRRRRRR/# )r$   r%   r&   r<   Request | Noner'   r(   r)   )r*   s   "r+   r,   RequestError.__annotate__p   s!            4  r.   c               	2   < \         SV `  V4       W n        R # r0   r1   )r6   r%   r<   r7   s   &&$r+   r3   RequestError.__init__p   s    !  r.   r@   rA   rB   rC   rD   rE   r3   rH   rI   rJ   s   @r+   r   r   k   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)   NrA   rB   rC   rD   rE   rH   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)   NrS   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)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r   z/
Timed out while receiving data from the host.
r)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r    z+
Timed out while sending data to the host.
r)   NrS   r)   r.   r+   r    r       rT   r.   c                      ] tR t^tRtRtR# )r   z:
Timed out waiting to acquire a connection from the pool.
r)   NrS   r)   r.   r+   r   r      rT   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)   NrS   r)   r.   r+   r   r      rV   r.   c                      ] tR t^tRtRtR# )r   z*
Failed to receive data from the network.
r)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r   z*
Failed to send data through the network.
r)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r   z#
Failed to establish a connection.
r)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r   z
Failed to close a connection.
r)   NrS   r)   r.   r+   r   r      rT   r.   c                      ] tR t^tRtRtR# )r   z:
An error occurred while establishing a proxy connection.
r)   NrS   r)   r.   r+   r   r      rT   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)   NrS   r)   r.   r+   r   r      rV   r.   c                      ] tR t^tRtRtR# )r   z
The protocol was violated.
r)   NrS   r)   r.   r+   r   r      rT   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)   NrS   r)   r.   r+   r   r      s    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)   NrS   r)   r.   r+   r   r      rV   r.   c                      ] tR t^tRtRtR# )r	   z?
Decoding of the response failed, due to a malformed encoding.
r)   NrS   r)   r.   r+   r	   r	      rT   r.   c                      ] tR t^tRtRtR# )r   z
Too many redirects.
r)   NrS   r)   r.   r+   r   r      rT   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/# )	r$   r%   r&   r<   r   responser   r'   r(   r)   )r*   s   "r+   r,   HTTPStatusError.__annotate__	  s)     ! ! ! !H !QU !r.   c               	>   < \         SV `  V4       W n        W0n        R # r0   )r2   r3   r<   ri   )r6   r%   r<   ri   r7   s   &&$$r+   r3   HTTPStatusError.__init__	  s    ! r.   )r<   ri   rQ   rJ   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/# r#   r)   )r*   s   "r+   r,   InvalidURL.__annotate__       " " " "r.   c                	&   < \         SV `  V4       R # r0   r2   r3   r5   s   &&r+   r3   InvalidURL.__init__      !r.   r)   rQ   rJ   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/# r#   r)   )r*   s   "r+   r,   CookieConflict.__annotate__  rp   r.   c                	&   < \         SV `  V4       R # r0   rr   r5   s   &&r+   r3   CookieConflict.__init__  rt   r.   r)   rQ   rJ   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)  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/# r#   r)   )r*   s   "r+   r,   StreamError.__annotate__1  rp   r.   c                	&   < \         SV `  V4       R # r0   rr   r5   s   &&r+   r3   StreamError.__init__1  rt   r.   r)   rQ   rJ   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   i5  zQ
Attempted to read or stream content, but the content has already
been streamed.
c                   V ^8  d   QhRR/# r$   r'   r(   r)   )r*   s   "r+   r,   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.Nrr   r5   s   & r+   r3   StreamConsumed.__init__;  s    & 	 	!r.   r)   rQ   rJ   s   @r+   r   r   5  s    
	" 	"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 read or stream response content, but the request has been
closed.
c                   V ^8  d   QhRR/# r   r)   )r*   s   "r+   r,   StreamClosed.__annotate__M  s     " "$ "r.   c                	*   < R p\         SV `  V4       R# )zDAttempted to read or stream content, but the stream has been closed.Nrr   r5   s   & r+   r3   StreamClosed.__init__M  s    U 	 	!r.   r)   rQ   rJ   s   @r+   r   r   G  s    
" "r.   c                  2   a  ] tR tRtRtR V 3R lltRtV ;t# )r   iT  zQ
Attempted to access streaming response content, without having called `read()`.
c                   V ^8  d   QhRR/# r   r)   )r*   s   "r+   r,   ResponseNotRead.__annotate__Y       " "$ "r.   c                	*   < R p\         SV `  V4       R# )zOAttempted to access streaming response content, without having called `read()`.Nrr   r5   s   & r+   r3   ResponseNotRead.__init__Y      / 	 	!r.   r)   rQ   rJ   s   @r+   r   r   T      " "r.   c                  2   a  ] tR tRtRtR V 3R lltRtV ;t# )r   ia  zP
Attempted to access streaming request content, without having called `read()`.
c                   V ^8  d   QhRR/# r   r)   )r*   s   "r+   r,   RequestNotRead.__annotate__f  r   r.   c                	*   < R p\         SV `  V4       R# )zNAttempted to access streaming request content, without having called `read()`.Nrr   r5   s   & r+   r3   RequestNotRead.__init__f  r   r.   r)   rQ   rJ   s   @r+   r   r   a  r   r.   c                    V ^8  d   QhRRRR/# )r$   r<   rM   r'   ztyping.Iterator[None]r)   )r*   s   "r+   r,   r,   o  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   r<   )r<   excs   & r+   request_contextr   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    r0   )*rE   
__future__r   
contextlibtypingTYPE_CHECKING_modelsr   r   __all__	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.   r+   <module>r      s  B #  	*@ 	  B 9   \ ~ % " # " >   <   . N  - L | 
!i 
!" ""Y ""	", 	""[ "$
"; 
"
"k 
"
"[ 
"  r.   