Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/urllib3/__pycache__/exceptions.cpython-311.pyc



]j <ddlmZddlmZGddeZGddeZGdd	eZ	Gd
de	Z
Gdd
eZGddeZGddeZ
GddeZeZGdde
ZGdde
ZGddeZGddeZGddee
ZGddeZGd d!ee	ZGd"d#e	ZGd$d%e	ZGd&d'eeZGd(d)eZGd*d+eZGd,d-eZGd.d/eZGd0d1eZGd2d3eZ Gd4d5eZ!Gd6d7eZ"Gd8d9eZ#Gd:d;eZ$Gd<d=eeZ%Gd>d?eZ&Gd@dAeeZGdBdCeeZ'GdDdEeZ(GdFdGe)eZ*GdHdIeZ+GdJdKeZ,GdLdMeZ-dNS)O)absolute_import)IncompleteReadceZdZdZdS)	HTTPErrorz#Base exception used by this module.N__name__
__module____qualname____doc__I/opt/imunify360/venv/lib64/python3.11/site-packages/urllib3/exceptions.pyrrs--DrrceZdZdZdS)HTTPWarningz!Base warning used by this module.Nrr
rrrrs++DrrceZdZdZdZdZdS)	PoolErrorz/Base exception for errors caused within a pool.cT||_t||d|dS)Nz: )poolr__init__)selfrmessages   rrzPoolError.__init__s0	4TTT77!;<<<<<rc|jdfS)N)NN	__class__rs r
__reduce__zPoolError.__reduce__s~|++rNr	r
rrrrr
rrrrs899===,,,,,rrceZdZdZdZdZdS)RequestErrorz8Base exception for PoolErrors that have associated URLs.cL||_t|||dSN)urlrr)rrr#rs    rrzRequestError.__init__#s'4w/////rc$|jd|jdffSr")rr#rs rrzRequestError.__reduce__'s~dh555rNrr
rrr r  s8BB00066666rr ceZdZdZdS)SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrr
rrr&r&,CCDrr&c"eZdZdZfdZxZS)
ProxyErrorz,Raised when the connection to a proxy fails.cZtt|j||g|R||_dSr")superr)roriginal_error)rrerrorargsrs    rrzProxyError.__init__5s8(j$(%?$????#rr	r
rrr
__classcell__rs@rr)r)2s>66$$$$$$$$$rr)ceZdZdZdS)DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrr
rrr2r2:EEDrr2ceZdZdZdS)
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrr
rrr5r5@sHHDrr5ceZdZdZddZdS)
MaxRetryErroraRaised when the maximum number of retries is exceeded.

    :param pool: The connection pool
    :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
    :param string url: The requested Url
    :param exceptions.Exception reason: The underlying error

    Nc`||_d|d|d}t||||dS)NzMax retries exceeded with url: z (Caused by ))reasonr r)rrr#r:rs     rrzMaxRetryError.__init__Ws=HKVVVTdD#w77777rr"r	r
rrrr
rrr7r7Ms2888888rr7ceZdZdZddZdS)HostChangedErrorz?Raised when an existing pool gets a request for a foreign host.cXd|z}t||||||_dS)Nz)Tried to open a foreign host with url: %s)r rretries)rrr#r@rs     rrzHostChangedError.__init__bs1=CdD#w777rN)r>r;r
rrr=r=_s.IIrr=ceZdZdZdS)TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrr
rrrBrBhs;;DrrBceZdZdZdS)TimeoutErrorzRaised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nrr
rrrDrDns	DrrDceZdZdZdS)ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrr
rrrFrFxsPPDrrFceZdZdZdS)ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrr
rrrHrHsJJDrrHceZdZdZdS)NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrr
rrrJrJsRRDrrJceZdZdZdS)EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrr
rrrLrLMMDrrLceZdZdZdS)ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrr
rrrOrOrMrrOceZdZdZdS)LocationValueErrorz<Raised when there is something wrong with a given URL input.Nrr
rrrQrQsFFDrrQceZdZdZdZdS)LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cTd|z}t||||_dS)NzFailed to parse: %s)rrlocation)rrUrs   rrzLocationParseError.__init__s-'(24))) 


rNr;r
rrrSrSs)GG!!!!!rrSc"eZdZdZfdZxZS)URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.cpd|z}tt||||_dS)NzNot supported URL scheme %s)r+rWrschemerrYrrs   rrzURLSchemeUnknown.__init__s7/&8
%%..w777rr/rs@rrWrWs><<rrWceZdZdZdZdZdS)
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r	r
rr
GENERIC_ERRORSPECIFIC_ERRORr
rrr\r\sNN.M=NNNrr\ceZdZdZdS)SecurityWarningz0Warned when performing security reducing actionsNrr
rrr`r`::Drr`ceZdZdZdS)SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrr
rrrcrcsLLDrrcceZdZdZdS)InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrr
rrreres99DrreceZdZdZdS)SystemTimeWarningz0Warned when system time is suspected to be wrongNrr
rrrgrgrarrgceZdZdZdS)InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nrr
rrririsSSDrriceZdZdZdS)SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrr
rrrkrkr'rrkceZdZdZdS)DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrr
rrrmrm
	DrrmceZdZdZdS)ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrr
rrrprpr3rrpceZdZdZdS)BodyNotHttplibCompatiblez
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nrr
rrrrrrrnrrrc(eZdZdZfdZdZxZS)rz
    Response length doesn't match expected Content-Length

    Subclass of :class:`http.client.IncompleteRead` to allow int value
    for ``partial`` to avoid creating large objects on streamed reads.
    cZtt|||dSr")r+rr)rpartialexpectedrs   rrzIncompleteRead.__init__s)
nd##,,Wh?????rc$d|j|jfzS)Nz/IncompleteRead(%i bytes read, %i more expected))rurvrs r__repr__zIncompleteRead.__repr__s@LMD

	
rr	r
rrrrxr0rs@rrrsV@@@@@






rrc(eZdZdZfdZdZxZS)InvalidChunkLengthz+Invalid chunk length in a chunked response.ctt|||j||_||_dSr")r+r{rtelllength_remainingresponselength)rrrrs   rrzInvalidChunkLength.__init__
sJ
 $''00MMOOX6	
	
	
!
rc$d|j|jfzS)Nz0InvalidChunkLength(got length %r, %i bytes read))rrurs rrxzInvalidChunkLength.__repr__sAKLE

	
rryrs@rr{r{sM55






rr{ceZdZdZdS)
InvalidHeaderz(The header provided was somehow invalid.Nrr
rrrrs22Drrc"eZdZdZfdZxZS)ProxySchemeUnknownz1ProxyManager does not support the supplied schemec||dkrd}|d}nd|z}tt||dS)N	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r+rrrZs   rrzProxySchemeUnknown.__init__#s[[  F>VGGV
	 $''0099999rr/rs@rrrs>;;:::::::::rrceZdZdZdS)ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrr
rrrr2sGGDrrc"eZdZdZfdZxZS)HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cj|pdd|}tt||dS)NUnknownz, unparsed data: )r+rr)rdefects
unparsed_datarrs    rrzHeaderParsingError.__init__;s?-4-A	-A-A==Q
 $''0099999rr/rs@rrr8s>XX:::::::::rrceZdZdZdS)UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrr
rrrr@r'rrN).
__future__rpackages.six.moves.http_clientrhttplib_IncompleteRead	ExceptionrWarningrrr r&r)r2r5ConnectionErrorr7r=rBrDrFrHrJrLrO
ValueErrorrQrSrWr\r`rcrergrirkrmrprrr{rAssertionErrorrrrrr
rr<module>rs`&&&&&&TTTTTT
														'				,	,	,	,	,		,	,	,	6	6	6	6	69	6	6	6					y			$$$$$$$$					)								I			 88888L888$|														9								|\								,								,i								Y								i								Y			!!!!!+!!!)>>>>>I>>>					k								O								_																o																								
								y			




Y 6


$




$:


"					I			:::::)9:::(					Z			::::::::					I					r
Back to Directory File Manager