
    Xh+                     N   d dl Z d dlmZmZ ddlmZ ddlm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	      Z G d dee j                        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      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 d0 d1e	e      Z G d2 d3e      Z  G d4 d5e	      Z! G d6 d7e	      Z" G d8 d9e	e#      Z$ G d: d;e	      Z% G d< d=e	      Z& G d> d?e	      Z' G d@ dAe(      Z) G dB dCe)e*      Z+ G dD dEe)      Z,i d e	ejZ                  eej\                  eej^                  eej`                  eejb                  eejd                  eejf                  eejh                  eejj                  eejl                  e	ejn                  e	ejp                  e	ejr                  eejt                  eejv                  e'ejx                  ei ejz                  e	ej|                  e	ej~                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eej                  eiZUdFeeed    f   dGeVfdHZWy)I    N)LiteralUnion   )	CurlECode)	CurlErrorc                   >     e Zd ZdZ	 	 ddeeed   f   f fdZ xZS )RequestExceptionz-Base exception for curl_cffi.requests packager   codec                 <    t        |   ||g|i | || _        y )N)super__init__response)selfmsgr
   r   argskwargs	__class__s         U/home/Script/Script_env/lib/python3.12/site-packages/curl_cffi/requests/exceptions.pyr   zRequestException.__init__   s%     	d4T4V4     )r   N)	__name__
__module____qualname____doc__r   r   r   r   __classcell__)r   s   @r   r	   r	      s0    7
 ./		! Iwqz)*	! 	!r   r	   c                       e Zd ZdZy)CookieConflictz)Same cookie exists for different domains.Nr   r   r   r    r   r   r   r      s    3r   r   c                       e Zd ZdZy)SessionClosedz$The session has already been closed.Nr   r   r   r   r    r        s    .r   r    c                       e Zd ZdZy)ImpersonateErrorz7The impersonate config was wrong or impersonate failed.Nr   r   r   r   r"   r"   $       Ar   r"   c                       e Zd ZdZy)InvalidJSONErrorzA JSON error occurred. not usedNr   r   r   r   r%   r%   )   s    )r   r%   c                       e Zd ZdZy)JSONDecodeErrorz,Couldn't decode the text into json. not usedNr   r   r   r   r'   r'   .       6r   r'   c                       e Zd ZdZy)	HTTPErrorzAn HTTP error occurred.Nr   r   r   r   r*   r*   2       !r   r*   c                       e Zd ZdZy)IncompleteReadzIncomplete read of contentNr   r   r   r   r-   r-   6   s    $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)DNSErrorzCould not resolveNr   r   r   r   r1   r1   >   s    r   r1   c                       e Zd ZdZy)
ProxyErrorzA proxy error occurred.Nr   r   r   r   r3   r3   B   r+   r   r3   c                       e Zd ZdZy)SSLErrorzAn SSL error occurred.Nr   r   r   r   r5   r5   F        r   r5   c                       e Zd ZdZy)CertificateVerifyErrorz,Raised when certificate validated has failedNr   r   r   r   r8   r8   J   r(   r   r8   c                       e Zd ZdZy)TimeoutzThe request timed out.Nr   r   r   r   r:   r:   N   r6   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.

    not used
    Nr   r   r   r   r<   r<   S   s    r   r<   c                       e Zd ZdZy)ReadTimeoutzIThe server did not send any data in the allotted amount of time. not usedNr   r   r   r   r>   r>   ]   s    Sr   r>   c                       e Zd ZdZy)URLRequiredz3A valid URL is required to make a request. not usedNr   r   r   r   r@   r@   b   s    =r   r@   c                       e Zd ZdZy)TooManyRedirectszToo many redirects.Nr   r   r   r   rB   rB   f   s    r   rB   c                       e Zd ZdZy)MissingSchemaz8The URL scheme (e.g. http or https) is missing. not usedNr   r   r   r   rD   rD   k   s    Br   rD   c                       e Zd ZdZy)InvalidSchemazBThe URL scheme provided is either invalid or unsupported. not usedNr   r   r   r   rF   rF   o   s    Lr   rF   c                       e Zd ZdZy)
InvalidURLz%The URL provided was somehow invalid.Nr   r   r   r   rH   rH   s       /r   rH   c                       e Zd ZdZy)InvalidHeaderz7The header value provided was somehow invalid. not usedNr   r   r   r   rK   rK   x   r#   r   rK   c                       e Zd ZdZy)InvalidProxyURLz+The proxy URL provided is invalid. not usedNr   r   r   r   rM   rM   }       5r   rM   c                       e Zd ZdZy)ChunkedEncodingErrorzHThe server declared chunked encoding but sent an invalid chunk. not usedNr   r   r   r   rP   rP      s    Rr   rP   c                       e Zd ZdZy)ContentDecodingErrorz+Failed to decode response content. not usedNr   r   r   r   rR   rR      rN   r   rR   c                       e Zd ZdZy)StreamConsumedErrorz<The content for this response was already consumed. not usedNr   r   r   r   rT   rT      s    Fr   rT   c                       e Zd ZdZy)
RetryErrorz%Custom retries logic failed. not usedNr   r   r   r   rV   rV      rI   r   rV   c                       e Zd ZdZy)UnrewindableBodyErrorzDRequests encountered an error when trying to rewind a body. not usedNr   r   r   r   rX   rX      s    Nr   rX   c                       e Zd ZdZy)InterfaceErrorz1A specified outgoing interface could not be used.Nr   r   r   r   rZ   rZ      s    ;r   rZ   c                       e Zd ZdZy)RequestsWarningz#Base warning for Requests. not usedNr   r   r   r   r\   r\      s    -r   r\   c                       e Zd ZdZy)FileModeWarningzWA file was opened in text mode, but Requests determined its binary length.
    not usedNr   r   r   r   r^   r^      s    r   r^   c                       e Zd ZdZy)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nr   r   r   r   r`   r`      s    Jr   r`   r
   r   c                 p    | t         j                  k(  r
d|v rt        S t        j	                  | t
              S )NCONNECT)r   
RECV_ERRORr3   
CODE2ERRORgetr	   )r
   r   s     r   
code2errorrf      s/    y###	S(8>>$ 011r   )Xjsontypingr   r   constr   curlr   OSErrorr	   r   r    r"   r%   r'   r*   r-   r/   r1   r3   r5   r8   r:   r<   r>   r@   rB   
ValueErrorrD   rF   rH   rK   rM   rP   rR   	TypeErrorrT   rV   rX   rZ   Warningr\   DeprecationWarningr^   r`   UNSUPPORTED_PROTOCOLURL_MALFORMATCOULDNT_RESOLVE_PROXYCOULDNT_RESOLVE_HOSTCOULDNT_CONNECTWEIRD_SERVER_REPLYREMOTE_ACCESS_DENIEDHTTP2HTTP_RETURNED_ERRORWRITE_ERROR
READ_ERROROUT_OF_MEMORYOPERATION_TIMEDOUTSSL_CONNECT_ERRORINTERFACE_FAILEDTOO_MANY_REDIRECTSUNKNOWN_OPTIONSETOPT_OPTION_SYNTAXGOT_NOTHINGSSL_ENGINE_NOTFOUNDSSL_ENGINE_SETFAILED
SEND_ERRORrc   SSL_CERTPROBLEM
SSL_CIPHERPEER_FAILED_VERIFICATIONBAD_CONTENT_ENCODINGSSL_ENGINE_INITFAILEDSSL_CACERT_BADFILESSL_CRL_BADFILESSL_ISSUER_ERRORSSL_PINNEDPUBKEYNOTMATCHSSL_INVALIDCERTSTATUSHTTP2_STREAMHTTP3QUIC_CONNECT_ERRORPROXYSSL_CLIENTCERTECH_REQUIREDPARTIAL_FILErd   strrf   r   r   r   <module>r      s  
  !  !y' !4% 4/$ /B' B
*' *
7&(<(< 7"  "%Y %'& ' "! "! !7X 7! !
_g T' T
>" >' 
C$j CM$j M0!: 0
B$j B
6j 6
S+ S
6+ 6
G*I G
0! 0
O, O<% <.g .
o'9 K K**""M* Z* ##Z	*
 ""H* *   /* ""O* OOY* !!9* +* ** -*   '* *  !*"   "2#*$ .%*& ""$4'*( ?)** !!8+*, ""H-*. //*0 /1*2 x3*4 (5*6 &&(>7*8 ""I9*: ##X;*<   (=*> x?*@ A*B &&C*D ##XE*F IOOY  /OOZhHNS*
^2U9gaj01 2 2r   