o
    Z�¿jQ  ã                   @   s°  d dl Z d dlmZmZ ddlmZ ddlmZ G dd„ deeƒZ	G dd	„ d	e	ƒZ
G d
d„ de	ƒZG dd„ de	ƒZG dd„ de	ƒZG dd„ dee jƒZG dd„ de	ƒZG dd„ deƒZG dd„ de	ƒZG dd„ deƒZG dd„ de	ƒZG dd„ deƒZG dd„ deƒZG d d!„ d!e	ƒZG d"d#„ d#eeƒZG d$d%„ d%eƒZG d&d'„ d'e	ƒZG d(d)„ d)e	ƒZG d*d+„ d+e	eƒZG d,d-„ d-e	eƒZG d.d/„ d/e	eƒZG d0d1„ d1e	eƒZG d2d3„ d3eƒZ G d4d5„ d5e	ƒZ!G d6d7„ d7e	ƒZ"G d8d9„ d9e	e#ƒZ$G d:d;„ d;e	ƒZ%G d<d=„ d=e	ƒZ&G d>d?„ d?e	ƒZ'G d@dA„ dAe(ƒZ)G dBdC„ dCe)e*ƒZ+G dDdE„ dEe)ƒZ,i d e	“ej-e“ej.e“ej/e“ej0e“ej1e“ej2e“ej3e“ej4e“ej5e“ej6e	“ej7e	“ej8e	“ej9e“ej:e“ej;e'“ej<e“i ej=e	“ej>e	“ej?e“ej@e“ejAe“ejBe“ejCe&“ejDe“ejEe“ejFe“ejGe“ejHe“ejIe“ejJe“ejKe“ejLe“ejMe“¥ejNeejOeejPeejQeejReejSeejTeejUei¥ZVdFeeed  f dGeWfdHdI„ZXdS )Jé    N)ÚLiteralÚUnioné   )Ú	CurlECode)Ú	CurlErrorc                       s8   e Zd ZdZ		ddeeed f f‡ fdd„Z‡  ZS )ÚRequestExceptionz-Base exception for curl_cffi.requests packager   NÚcodec                    s&   t ƒ j||g|¢R i |¤Ž || _d S )N)ÚsuperÚ__init__Úresponse)ÚselfÚmsgr   r   ÚargsÚkwargs©Ú	__class__© úX/home/dinkstrade/pdmp/venv/lib/python3.10/site-packages/curl_cffi/requests/exceptions.pyr
      s   
zRequestException.__init__)r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r
   Ú__classcell__r   r   r   r   r      s    üýr   c                   @   ó   e Zd ZdZdS )ÚCookieConflictz)Same cookie exists for different domains.N©r   r   r   r   r   r   r   r   r      ó    r   c                   @   r   )ÚSessionClosedz$The session has already been closed.Nr   r   r   r   r   r       r   r   c                   @   r   )ÚImpersonateErrorz7The impersonate config was wrong or impersonate failed.Nr   r   r   r   r   r   $   r   r   c                   @   r   )ÚInvalidJSONErrorzA JSON error occurred. not usedNr   r   r   r   r   r   )   r   r   c                   @   r   )ÚJSONDecodeErrorz,Couldn't decode the text into json. not usedNr   r   r   r   r   r    .   r   r    c                   @   r   )Ú	HTTPErrorzAn HTTP error occurred.Nr   r   r   r   r   r!   2   r   r!   c                   @   r   )ÚIncompleteReadzIncomplete read of contentNr   r   r   r   r   r"   6   r   r"   c                   @   r   )ÚConnectionErrorzA Connection error occurred.Nr   r   r   r   r   r#   :   r   r#   c                   @   r   )ÚDNSErrorzCould not resolveNr   r   r   r   r   r$   >   r   r$   c                   @   r   )Ú
ProxyErrorzA proxy error occurred.Nr   r   r   r   r   r%   B   r   r%   c                   @   r   )ÚSSLErrorzAn SSL error occurred.Nr   r   r   r   r   r&   F   r   r&   c                   @   r   )ÚCertificateVerifyErrorz,Raised when certificate validated has failedNr   r   r   r   r   r'   J   r   r'   c                   @   r   )ÚTimeoutzThe request timed out.Nr   r   r   r   r   r(   N   r   r(   c                   @   r   )ÚConnectTimeoutz�The 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   r   r)   c                   @   r   )ÚReadTimeoutzIThe server did not send any data in the allotted amount of time. not usedNr   r   r   r   r   r*   ]   r   r*   c                   @   r   )ÚURLRequiredz3A valid URL is required to make a request. not usedNr   r   r   r   r   r+   b   r   r+   c                   @   r   )ÚTooManyRedirectszToo many redirects.Nr   r   r   r   r   r,   f   r   r,   c                   @   r   )ÚMissingSchemaz8The URL scheme (e.g. http or https) is missing. not usedNr   r   r   r   r   r-   k   r   r-   c                   @   r   )ÚInvalidSchemazBThe URL scheme provided is either invalid or unsupported. not usedNr   r   r   r   r   r.   o   r   r.   c                   @   r   )Ú
InvalidURLz%The URL provided was somehow invalid.Nr   r   r   r   r   r/   s   r   r/   c                   @   r   )ÚInvalidHeaderz7The header value provided was somehow invalid. not usedNr   r   r   r   r   r0   x   r   r0   c                   @   r   )ÚInvalidProxyURLz+The proxy URL provided is invalid. not usedNr   r   r   r   r   r1   }   r   r1   c                   @   r   )ÚChunkedEncodingErrorzHThe server declared chunked encoding but sent an invalid chunk. not usedNr   r   r   r   r   r2   ‚   r   r2   c                   @   r   )ÚContentDecodingErrorz+Failed to decode response content. not usedNr   r   r   r   r   r3   ‡   r   r3   c                   @   r   )ÚStreamConsumedErrorz<The content for this response was already consumed. not usedNr   r   r   r   r   r4   Œ   r   r4   c                   @   r   )Ú
RetryErrorz%Custom retries logic failed. not usedNr   r   r   r   r   r5   ‘   r   r5   c                   @   r   )ÚUnrewindableBodyErrorz>The request body could not be rewound for a redirect or retry.Nr   r   r   r   r   r6   •   r   r6   c                   @   r   )ÚInterfaceErrorz1A specified outgoing interface could not be used.Nr   r   r   r   r   r7   ™   r   r7   c                   @   r   )ÚRequestsWarningz#Base warning for Requests. not usedNr   r   r   r   r   r8   ¡   r   r8   c                   @   r   )ÚFileModeWarningzWA file was opened in text mode, but Requests determined its binary length.
    not usedNr   r   r   r   r   r9   ¦   r   r9   c                   @   r   )ÚRequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nr   r   r   r   r   r:   ¬   r   r:   r   r   c                 C   s"   | t jkrd|v rtS t | t¡S )NÚCONNECT)r   Ú
RECV_ERRORr%   Ú
CODE2ERRORÚgetr   )r   r   r   r   r   Ú
code2errorà   s   r?   )YÚjsonÚtypingr   r   Úconstr   Úcurlr   ÚOSErrorr   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   Ú
ValueErrorr-   r.   r/   r0   r1   r2   r3   Ú	TypeErrorr4   r5   r6   r7   ÚWarningr8   ÚDeprecationWarningr9   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_ERRORÚSEND_FAIL_REWINDr<   Ú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_FILEr=   Ústrr?   r   r   r   r   Ú<module>   sæ   
ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâá à!ß"Þ#Ö"0