+
    Q?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$       {/home/vela/workspace/domain/tn-silver/web/tn-site/.runtime/imagegen-venv/lib/python3.14/site-packages/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,   