srh&ddlmZddlZddlZddlZddlmZddlmZ ej rddl m Z ddl mZddlmZdd lmZGd d eZGd d eZeejdefeedffZGddeZGddeZGddeZGddeZGddeZGddeZ 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@dS)W) annotationsN) MessageDefect)IncompleteRead)HTTPConnection)ConnectionPool) HTTPResponse)RetryceZdZdZdS) HTTPErrorz#Base exception used by this module.N__name__ __module__ __qualname____doc__^/var/lib/jenkins/jobs/Dev/workspace/my-venv/lib/python3.11/site-packages/urllib3/exceptions.pyr r s----rr ceZdZdZdS) HTTPWarningz!Base warning used by this module.Nr rrrrrs++++rr.c,eZdZdZd fd Zd d ZxZS) PoolErrorz/Base exception for errors caused within a pool.poolrmessagestrreturnNonecp||_||_t|d|dSNz: )r_messagesuper__init__)selfrr __class__s rr"zPoolError.__init__ =   D--G--.....r_TYPE_REDUCE_RESULTc"|jd|jffSNr$r r#s r __reduce__zPoolError.__reduce__%~dm444r)rrrrrrrr&rrrrr"r+ __classcell__r$s@rrrsW99////// 55555555rrc,eZdZdZd fd Zd d ZxZS) RequestErrorz8Base exception for PoolErrors that have associated URLs.rrurlrrrrcZ||_t||dSr()r3r!r")r#rr3rr$s rr"zRequestError.__init__-s* w'''''rr&c.|jd|j|jffSr()r$r3r r*s rr+zRequestError.__reduce__1s~dh >>>r)rrr3rrrrrr-r.r0s@rr2r2*sWBB((((((????????rr2ceZdZdZdS)SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr rrrr7r76CCCCrr7c0eZdZUdZded<d fd ZxZS) ProxyErrorz,Raised when the connection to a proxy fails. Exceptionoriginal_errorrrerrorrrcZt||||_dSr()r!r"r<)r#rr=r$s rr"zProxyError.__init__@s+ %(((#r)rrr=r;rr)rrrr__annotations__r"r/r0s@rr:r::sS66$$$$$$$$$$rr:ceZdZdZdS) DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr rrrrArAEEEEErrAceZdZdZdS) ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr rrrrDrDIsHHHHrrDc0eZdZdZ ddfd Zdd 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` Nrrr3rreasonException | Nonerrcn||_d|d|d}t|||dS)NzMax retries exceeded with url: z (Caused by ))rGr!r")r#rr3rGrr$s rr"zMaxRetryError.__init___sF PCPPVPPP sG,,,,,rr&c.|jd|j|jffSr()r$r3rGr*s rr+zMaxRetryError.__reduce__hs~dh <<` and :exc:`ConnectTimeoutErrors `. Nr rrrrVrV|srrVceZdZdZdS)ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr rrrrXrXsPPPPrrXceZdZdZdS)ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr rrrrZrZsJJJJrrZcDeZdZdZd fd Zd d Zedd ZxZS)NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.connrrrrrcp||_||_t|d|dSr)r]r r!r")r#r]rr$s rr"zNewConnectionError.__init__r%rr&c"|jd|jffSr(r)r*s rr+zNewConnectionError.__reduce__r,rcHtjdtd|jS)Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.) stacklevel)warningswarnDeprecationWarningr]r*s rrzNewConnectionError.pools0  5      yr)r]rrrrrr-)rr) rrrrr"r+propertyrr/r0s@rr\r\swRR////// 5555Xrr\c,eZdZdZd fd Zd d ZxZS)NameResolutionErrorz'Raised when host name resolution fails.hostrr]rrGsocket.gaierrorczd|d|d}||_||_t||dS)NzFailed to resolve 'z' (rJ)_host_reasonr!r")r#rir]rGrr$s rr"zNameResolutionError.__init__sI::::::   w'''''rrr&c.|j|jd|jffSr()r$rlrmr*s rr+zNameResolutionError.__reduce__s~ D$,???r)rirr]rrGrjr-r.r0s@rrhrhs_11(((((( @@@@@@@@rrhceZdZdZdS)EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr rrrrprpMMMMrrpceZdZdZdS) FullPoolErrorzGRaised when we try to add a connection to a full pool in blocking mode.Nr rrrrsrssQQQQrrsceZdZdZdS)ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr rrrrururqrruceZdZdZdS)LocationValueErrorzProxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://r!r"rs rr"zProxySchemeUnknown.__init__4sO [ F >VGGb&bbbG !!!!!r)r~rrrrRr0s@rrr/sC;; " " " " " " " " " "rrceZdZdZdS)ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr rrrrr@sGGGGrrc$eZdZdZd fd ZxZS) HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.defectslist[MessageDefect] unparsed_databytes | str | Nonerrc\|pdd|}t|dS)NUnknownz, unparsed data: r)r#rrrr$s rr"zHeaderParsingError.__init__Gs;) MMMMM !!!!!r)rrrrrrrRr0s@rrrDsCXX""""""""""rrceZdZdZdS)UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr rrrrrNr8rr)A __future__rsockettypingrc email.errorsr http.clientrhttplib_IncompleteRead TYPE_CHECKING connectionrconnectionpoolrrr util.retryr r;r WarningrtupleCallableobjectr&rr2r7r:rArDConnectionErrorrFrMrTrVrXrZr\rhrprsru ValueErrorrwryr}rrrrrrrrrrrAssertionErrorrrrrrrrrs"""""" &&&&&&@@@@@@ "******......&&&&&&!!!!!! ..... ...,,,,,',,,FOCK8% :LLM 5 5 5 5 5 5 5 5 ? ? ? ? ?9 ? ? ?DDDDDyDDD$$$$$$$$FFFFF)FFFIIIIIIIII   =====L===2|<<<<< <<<9QQQQQ|\QQQ KKKKK,KKK,i0 @ @ @ @ @, @ @ @NNNNNYNNNRRRRRIRRRNNNNNiNNNGGGGGYGGG!!!!!+!!!)>>>>>I>>>;;;;;k;;;:::::_:::44444444;;;;;;;;TTTTToTTT FFFFF FFFy     Y 6   ,      $:    33333I333""""")9""""HHHHHZHHH""""""""DDDDDIDDDDDr