
    Zhq                        d Z ddlmZ  G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z	 G d dee	      Z
 G d de	      Z G d de      Z G d de      Z G d dee      Z G d dee      Z G d dee      Z G d dee      Z G d d e      Z G d! d"e      Z G d# d$ee      Z G d% d&ee      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.ee      Z G d/ d0e      Zy1)2z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
    )	HTTPErrorc                   "     e Zd ZdZ fdZ xZS )RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    c                     |j                  dd      }|| _        |j                  dd      | _        |3| j                  s't        |d      r| j                  j                  | _        t	        t
        |   |i | y)zBInitialize RequestException with `request` and `response` objects.responseNrequest)popr   r   hasattrsuperr   __init__)selfargskwargsr   	__class__s       b/mounts/lovelace/software/anaconda3/envs/py312/lib/python3.12/site-packages/requests/exceptions.pyr   zRequestException.__init__   sh    ::j$/ zz)T2 ),==00DL.??    )__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r   r      s    @ @r   r   c                       e Zd ZdZy)r   zAn HTTP error occurred.Nr   r   r   r    r   r   r   r          !r   r   c                       e Zd ZdZy)ConnectionErrorzA Connection error occurred.Nr   r   r   r   r   r       s    &r   r   c                       e Zd ZdZy)
ProxyErrorzA proxy error occurred.Nr   r   r   r   r   r   $   r   r   r   c                       e Zd ZdZy)SSLErrorzAn SSL error occurred.Nr   r   r   r   r!   r!   (   s     r   r!   c                       e Zd ZdZy)TimeoutzThe request timed out.

    Catching this error will catch both
    :exc:`~requests.exceptions.ConnectTimeout` and
    :exc:`~requests.exceptions.ReadTimeout` errors.
    Nr   r   r   r   r#   r#   ,   s    r   r#   c                       e Zd ZdZy)ConnectTimeoutzThe request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    Nr   r   r   r   r%   r%   5   s    r   r%   c                       e Zd ZdZy)ReadTimeoutz@The server did not send any data in the allotted amount of time.Nr   r   r   r   r'   r'   <   s    Jr   r'   c                       e Zd ZdZy)URLRequiredz*A valid URL is required to make a request.Nr   r   r   r   r)   r)   @   s    4r   r)   c                       e Zd ZdZy)TooManyRedirectszToo many redirects.Nr   r   r   r   r+   r+   D   s    r   r+   c                       e Zd ZdZy)MissingSchemaz/The URL schema (e.g. http or https) is missing.Nr   r   r   r   r-   r-   H   s    9r   r-   c                       e Zd ZdZy)InvalidSchemaz"See defaults.py for valid schemas.Nr   r   r   r   r/   r/   L       ,r   r/   c                       e Zd ZdZy)
InvalidURLz%The URL provided was somehow invalid.Nr   r   r   r   r2   r2   P   s    /r   r2   c                       e Zd ZdZy)InvalidHeaderz.The header value provided was somehow invalid.Nr   r   r   r   r4   r4   T   s    8r   r4   c                       e Zd ZdZy)InvalidProxyURLz"The proxy URL provided is invalid.Nr   r   r   r   r6   r6   X   r0   r   r6   c                       e Zd ZdZy)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nr   r   r   r   r8   r8   \   s    Ir   r8   c                       e Zd ZdZy)ContentDecodingErrorz!Failed to decode response contentNr   r   r   r   r:   r:   `   s    +r   r:   c                       e Zd ZdZy)StreamConsumedErrorz2The content for this response was already consumedNr   r   r   r   r<   r<   d   s    <r   r<   c                       e Zd ZdZy)
RetryErrorzCustom retries logic failedNr   r   r   r   r>   r>   h   s    %r   r>   c                       e Zd ZdZy)UnrewindableBodyErrorz:Requests encountered an error when trying to rewind a bodyNr   r   r   r   r@   r@   l   s    Dr   r@   c                       e Zd ZdZy)RequestsWarningzBase warning for Requests.Nr   r   r   r   rB   rB   r   s    $r   rB   c                       e Zd ZdZy)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nr   r   r   r   rD   rD   w   s    Tr   rD   c                       e Zd ZdZy)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nr   r   r   r   rF   rF   |   s    Jr   rF   N)r   urllib3.exceptionsr   BaseHTTPErrorIOErrorr   r   r   r!   r#   r%   r'   r)   r+   
ValueErrorr-   r/   r2   r4   r6   r8   r:   	TypeErrorr<   r>   r@   WarningrB   DeprecationWarningrD   rF   r   r   r   <module>rN      sJ   :@w @ "  "'& '" "! ! _g K' K5" 5' :$j :-$j -0!: 09$j 9-j -J+ J,+] ,=*I =&! &E, E	g 	
	o'9 	
	 	r   