{f$<ddlmZddlZddlZddlZddlmZddlmZ ejrddl m Z ddl mZddlmZdd lmZGd d eZGd d eZej.ej0defej.edffZGddeZGddeZGddeZGddeZGddeZGddeZ e Z!GddeZ"GddeZ#Gdd eZ$Gd!d"eZ%Gd#d$e%eZ&Gd%d&e%Z'Gd'd(e'eZ(Gd)d*e(Z)Gd+d,eZ*Gd-d.eZ+Gd/d0eZ,Gd1d2e-eZ.Gd3d4e.Z/Gd5d6e.Z0Gd7d8eZ1Gd9d:eZ2Gd;de2Z4Gd?d@e2Z5GdAdBe2Z6GdCdDeZ7GdEdFe e-Z8GdGdHeZ9GdIdJee ZGdKdLee Z:GdMdNeZ;GdOdPeGdSdTeZ?GdUdVeZ@y)W) annotationsN) MessageDefect)IncompleteRead)HTTPConnection)ConnectionPool) HTTPResponse)RetryceZdZdZy) HTTPErrorz#Base exception used by this module.N__name__ __module__ __qualname____doc__[/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/urllib3/exceptions.pyr r s-rr ceZdZdZy) HTTPWarningz!Base warning used by this module.Nr rrrrrs+rr.c,eZdZdZdfd ZddZxZS) PoolErrorz/Base exception for errors caused within a pool.c<||_t| |d|yNz: )poolsuper__init__)selfrmessage __class__s rrzPoolError.__init__""  D6G9-.rc|jdfS)N)NNr rs r __reduce__zPoolError.__reduce__&s~~|++r)rrrstrreturnNoner'_TYPE_REDUCE_RESULTrrrrrr% __classcell__r#s@rrrs9/,rrc,eZdZdZdfd ZddZxZS) RequestErrorz8Base exception for PoolErrors that have associated URLs.c4||_t| ||yN)urlrr)rrr1rr s rrzRequestError.__init__.s w'rc8|jd|jdffSr0)r r1r$s rr%zRequestError.__reduce__2s~~dhh555r)rrr1r&rr&r'r(r)r+r#s@rr.r.+sB(6rr.ceZdZdZy)SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr rrrr4r47Crr4c0eZdZUdZded<dfd ZxZS) ProxyErrorz,Raised when the connection to a proxy fails. Exceptionoriginal_errorc4t|||||_yr0)rrr9)rrerrorr s rrzProxyError.__init__As %(#r)rr&r;r8r'r()rrrr__annotations__rr,r#s@rr7r7;s6$$rr7ceZdZdZy) DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr rrrr>r>FErr>ceZdZdZy) ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr rrrrArAJsHrrAc6eZdZdZ d dfd ZxZS) 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` cH||_d|d|d}t| |||y)NzMax retries exceeded with url: z (Caused by ))reasonrr)rrr1rFrr s rrzMaxRetryError.__init__`s1 3C5 VJaP sG,rr0)rrr1r&rFzException | Noner'r(rrrrrr,r#s@rrCrCUs9JN-"-),-6F- --rrCc6eZdZdZ d dfd ZxZS)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: )rrretries)rrr1rKrr s rrzHostChangedError.__init__ms)` and :exc:`ConnectTimeoutErrors `. Nr rrrrPrPysrrPceZdZdZy)ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr rrrrRrRsPrrRceZdZdZy)ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr rrrrTrTsJrrTc6eZdZdZdfd ZeddZxZS)NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c<||_t| |d|yr)connrr)rrXrr s rrzNewConnectionError.__init__r!rcRtjdtd|jS)Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.) stacklevel)warningswarnDeprecationWarningrXr$s rrzNewConnectionError.pools%  5   yyr)rXrrr&r'r()r'r)rrrrrpropertyrr,r#s@rrVrVsR/rrVc$eZdZdZdfd ZxZS)NameResolutionErrorz'Raised when host name resolution fails.c8d|d|d}t|||y)NzFailed to resolve 'z' (rErr)rhostrXrFrr s rrzNameResolutionError.__init__s&'vS: w'r)rdr&rXrrFzsocket.gaierrorrGr#s@rraras1((rraceZdZdZy)EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr rrrrfrfMrrfceZdZdZy) FullPoolErrorzGRaised when we try to add a connection to a full pool in blocking mode.Nr rrrririsQrriceZdZdZy)ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr rrrrkrkrgrrkceZdZdZy)LocationValueErrorzProxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://rcrvs rrzProxySchemeUnknown.__init__&s8 [ F >VG9&AabG !r)ruz str | Noner'r(rGr#s@rrr!s; " "rrceZdZdZy)ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr rrrrr2sGrrc0eZdZdZ dfd ZxZS)HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.c:|xsdd|}t||y)NUnknownz, unparsed data: rc)rdefects unparsed_datarr s rrzHeaderParsingError.__init__9s*) **;M;LM !r)rzlist[MessageDefect]rzbytes | str | Noner'r(rGr#s@rrr6s(X"*";M" ""rrceZdZdZy)UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr rrrrr@r5rr)A __future__rsockettypingr\ email.errorsr http.clientrhttplib_IncompleteRead TYPE_CHECKING connectionrconnectionpoolrrr util.retryr r8r WarningrTupleCallableobjectr*rr.r4r7r>rAConnectionErrorrCrIrNrPrRrTrVrarfrirk ValueErrorrmrorsrxr|rrrrrrrrrAssertionErrorrrrrrrrrs]" &@ *.&! . .,',ll OOCK &,,vs{";; , , 69 6DyD$$F)FIII   -L-*|< <9Q|\Q K,K,i&(,(NYNRIRNiNGYG!+!)>I>;k;:_:44;;ToT F Fy Y 6 ,  $:  3I3")9""HZH""DIDr