Files
intellecton/venv/lib/python3.12/site-packages/urllib3/__pycache__/exceptions.cpython-312.pyc
T

60 lines
16 KiB
Plaintext
Raw Normal View History

Ë
jÙ&ãóddlmZddlZddlZddlZddlmZddlmZ ejrddl m Z ddl
mZddlmZdd lmZGd
d e«ZGd d
e«Zeej0defeedffZGdde«ZGdde«ZGdde«ZGdde«ZGdde«ZGdde«Z e Z!Gdde«Z"Gdde«Z#Gdd e«Z$Gd!„d"e«Z%Gd#„d$e%e«Z&Gd%„d&e%«Z'Gd'„d(e'e«Z(Gd)„d*e(«Z)Gd+„d,e«Z*Gd-„d.e«Z+Gd/„d0e«Z,Gd1„d2e-e«Z.Gd3„d4e.«Z/Gd5„d6e.«Z0Gd7„d8e«Z1Gd9„d:e«Z2Gd;„d<e2«Z3Gd=„d>e2«Z4Gd?„d@e2«Z5GdA„dBe2«Z6GdC„dDe«Z7GdE„dFe e-«Z8GdG„dHe«Z9GdI„dJee «ZGdK„dLee «Z:GdM„dNe«Z;GdO„dPe<e0«Z=GdQ„dRe-«Z>GdS„dTe«Z?GdU„dVe«Z@y)Wé)Ú annotationsN)Ú
MessageDefect)ÚIncompleteReadé)ÚHTTPConnection)ÚConnectionPool)Ú HTTPResponse)ÚRetrycóeZdZdZy)Ú HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©óúU/home/antigravity/intellecton/venv/lib/python3.12/site-packages/urllib3/exceptions.pyr r sÚ-rr cóeZdZdZy)Ú HTTPWarningz!Base warning used by this module.Nr
rrrrrsÚ+rr.có,eZdZdZdˆfd ZddZˆxZS)Ú PoolErrorz/Base exception for errors caused within a pool.cóJ||_||_t|
|d|«y©Nz: )ÚpoolÚ_messageÚsuperÚ__init__)ÚselfrÚmessageÚ __class__s €rrzPoolError.__init__ ó)ø€ØˆŒ ؈Œ
Ü
јD˜6  G .rcó6|jd|jffS©r!r©rs rÚ
__reduce__zPoolError.__reduce__%óà~‰~  d§m¡mÐ4r)rrr ÚstrÚreturnÚNone©r*Ú_TYPE_REDUCE_RESULT©rrrrrr'Ú
__classcell__©r!s@rrrsø„Ù
5rrcó,eZdZdZdˆfd ZddZˆxZS)Ú RequestErrorz8Base exception for PoolErrors that have associated URLs.có4||_t| ||«yr$)Úurlrr)rrr4r r!s €rrzRequestError.__init__-sø€ØˆŒÜ
ј˜'rcóL|jd|j|jffSr$)r!r4rr&s rr'zRequestError.__reduce__1s à~‰~  d§h¡h°·
±
Ð>r)rrr4ú
str | Noner r)r*r+r,r.r0s@rr2r2*sø„Ù?rr2cóeZdZdZy)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr
rrrr8r86óÚCrr8có0eZdZUdZded<dˆfd ZˆxZS)Ú
ProxyErrorz,Raised when the connection to a proxy fails.Ú ExceptionÚoriginal_errorcó4t|||«||_yr$)rrr=)rr Úerrorr!s €rrzProxyError.__init__@sø€Ü
ј %Ô#ˆÕr)r r)r?r<r*r+)rrrrÚ__annotations__rr/r0s@rr;r;:sø…ÙÓ÷$rr;cóeZdZdZy)Ú DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr
rrrrBrBEóÚErrBcóeZdZdZy)Ú
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr
rrrrErEIsÚHrrEcó>eZdZdZ d dˆfd
ZddZˆxZS)Ú
MaxRetryErroraRaised when the maximum number of retries is exceeded.
:param pool: The connection pool
:type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
:param str url: The requested Url
:param reason: The underlying error
:type reason: :class:`Exception`
cóH||_d|d|d}t| |||«y)NzMax retries exceeded with url: z (Caused by ú))Úreasonrr)rrr4rJr r!s €rrzMaxRetryError.__init___s1ø€ðˆŒ à3°C°5¸ ÀVÀJÈaÐä
ј˜s GÕ,rcóL|jd|j|jffSr$)r!r4rJr&s rr'zMaxRetryError.__reduce__hs à~‰~  d§h¡h°· ± Ð<rr$)rrr4r6rJzException | Noner*r+r,r.r0s@rrGrGTs9ø„ñðQUð-Ø)3ð-Ø=Mð
õ=rrGcó6eZdZdZ d dˆfd
ZˆxZS)ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.có@d|}t||||«||_y)Nz'Tried to open a foreign host with url: )rrÚretries)rrr4rOr r!s €rrzHostChangedError.__init__ps)ø€ð<¸C¸Ü
ј˜s GÔˆ r)é)rrr4r)rOz Retry | intr*r+©rrrrrr/r0s@rrMrMms7ø„ÙFGðØØ),ðØ7Bðà
÷ñrrMcóeZdZdZy)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr
rrrrSrSxsÚ;rrScóeZdZdZy)Ú TimeoutErrorz¿Raised when a socket timeout error occurs.
Catching this error will catch both :exc:`ReadTimeoutErrors
<ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
Nr
rrrrUrU|sòrrUcóeZdZdZy)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr
rrrrWrWsÚPrrWcóeZdZdZy)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr
rrrrYrYŠsÚJrrYcó>eZdZdZdˆfd ZddZedd«ZˆxZS)ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.cóJ||_||_t|
|d|«yr)Úconnrrr)rr]r r!s €rrzNewConnectionError.__init__r"rcó6|jd|jffSr$r%r&s rr'zNewConnectionError.__reduce__r(rcóRtjdtd¬«|jS)NzZThe 'pool' property is deprecated and will be removed in urllib3 v3.0. Use 'conn' instead.é)Ú
stacklevel)ÚwarningsÚwarnÚ
FutureWarningr]r&s rrzNewConnectionError.poolšs%ä
ð
Øõ 
ðy‰yÐr)r]rr r)r*r+r,)r*r) rrrrrr'Úpropertyrr/r0s@rr[r[Žs$ø„Ù
òóôrr[có,eZdZdZdˆfd ZddZˆxZS)ÚNameResolutionErrorz'Raised when host name resolution fails.cóTd|d|d}||_||_t|
||«y)NzFailed to resolve 'z' (rI)Ú_hostÚ_reasonrr)rÚhostr]rJr r!s €rrzNameResolutionError.__init__©s4ø€Ø v¨S°°¸Ð؈Œ
؈Œ Ü
ј˜'rcóL|j|jd|jffSr$)r!rirjr&s rr'zNameResolutionError.__reduce__¯s à~‰~ §
¡
¨D°$·,±,Ð?r)rkr)r]rrJzsocket.gaierrorr,r.r0s@rrgrg¦sø„Ù @rrgcóeZdZdZy)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr