Viewing File: /opt/alt/python38/lib/python3.8/site-packages/urllib3/__pycache__/exceptions.cpython-38.pyc

U

ØÕ` ã@s~ddlmZddlmZGdd„deƒZGdd„deƒZGdd	„d	eƒZ	Gd
d„de	ƒZ
Gdd
„d
eƒZGdd„deƒZGdd„deƒZ
Gdd„deƒZeZGdd„de
ƒZGdd„de
ƒZGdd„deƒZGdd„deƒZGdd„dee
ƒZGdd„deƒZGd d!„d!ee	ƒZGd"d#„d#e	ƒZGd$d%„d%e	ƒZGd&d'„d'eeƒZGd(d)„d)eƒZGd*d+„d+eƒZGd,d-„d-eƒZGd.d/„d/eƒZGd0d1„d1eƒZGd2d3„d3eƒZ Gd4d5„d5eƒZ!Gd6d7„d7eƒZ"Gd8d9„d9eƒZ#Gd:d;„d;eƒZ$Gd<d=„d=eeƒZ%Gd>d?„d?eƒZ&Gd@dA„dAeeƒZGdBdC„dCeeƒZ'GdDdE„dEeƒZ(GdFdG„dGe)eƒZ*GdHdI„dIeƒZ+GdJdK„dKeƒZ,GdLdM„dMeƒZ-dNS)Oé)Úabsolute_importé)ÚIncompleteReadc@seZdZdZdS)Ú	HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__©rrúC/opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.pyrsrc@seZdZdZdS)ÚHTTPWarningz!Base warning used by this module.Nrrrrrr
sr
c@s eZdZdZdd„Zdd„ZdS)Ú	PoolErrorz/Base exception for errors caused within a pool.cCs||_t |d||f¡dS)Nz%s: %s)ÚpoolrÚ__init__)ÚselfrÚmessagerrrrszPoolError.__init__cCs
|jdfS)N)NN©Ú	__class__©rrrrÚ
__reduce__szPoolError.__reduce__N©rrr	r
rrrrrrrsrc@s eZdZdZdd„Zdd„ZdS)ÚRequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t |||¡dS©N)Úurlrr)rrrrrrrr#szRequestError.__init__cCs|jd|jdffSr)rrrrrrr'szRequestError.__reduce__Nrrrrrr src@seZdZdZdS)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrrrrrr,srcs eZdZdZ‡fdd„Z‡ZS)Ú
ProxyErrorz,Raised when the connection to a proxy fails.cs"tt|ƒj||f|žŽ||_dSr)ÚsuperrrZoriginal_error)rrÚerrorÚargsrrrr5szProxyError.__init__©rrr	r
rÚ
__classcell__rrrrr2src@seZdZdZdS)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrrrrrr":sr"c@seZdZdZdS)Ú
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrrrrrr#@sr#c@seZdZdZddd„ZdS)Ú
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

    NcCs&||_d||f}t ||||¡dS)Nz0Max retries exceeded with url: %s (Caused by %r))Úreasonrr)rrrr%rrrrrWszMaxRetryError.__init__)N©rrr	r
rrrrrr$Ms	r$c@seZdZdZddd„ZdS)ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.écCs"d|}t ||||¡||_dS)Nz)Tried to open a foreign host with url: %s)rrÚretries)rrrr)rrrrrbszHostChangedError.__init__N)r(r&rrrrr'_sr'c@seZdZdZdS)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrrrrrr*hsr*c@seZdZdZdS)ÚTimeoutErrorz¿Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nrrrrrr+nsr+c@seZdZdZdS)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrrrrrr,xsr,c@seZdZdZdS)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrrrrrr-€sr-c@seZdZdZdS)ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrrrrrr.†sr.c@seZdZdZdS)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrrrrrr/Œsr/c@seZdZdZdS)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrrrrrr0’sr0c@seZdZdZdS)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nrrrrrr1˜sr1c@seZdZdZdd„ZdS)ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t ||¡||_dS)NzFailed to parse: %s)rrÚlocation)rr3rrrrr¡szLocationParseError.__init__Nr&rrrrr2žsr2cs eZdZdZ‡fdd„Z‡ZS)ÚURLSchemeUnknownz2Raised when a URL input has an unsupported scheme.cs"d|}tt|ƒ |¡||_dS)NzNot supported URL scheme %s)rr4rÚscheme©rr5rrrrr«szURLSchemeUnknown.__init__r rrrrr4¨sr4c@seZdZdZdZdZdS)Ú
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrr	r
Z
GENERIC_ERRORZSPECIFIC_ERRORrrrrr7²sr7c@seZdZdZdS)ÚSecurityWarningz0Warned when performing security reducing actionsNrrrrrr8¹sr8c@seZdZdZdS)ÚSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrrrrrr9¿sr9c@seZdZdZdS)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrrrrrr:Åsr:c@seZdZdZdS)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongNrrrrrr;Ësr;c@seZdZdZdS)ÚInsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nrrrrrr<Ñsr<c@seZdZdZdS)ÚSNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrrrrrr=×sr=c@seZdZdZdS)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrrrrrr>Ýsr>c@seZdZdZdS)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrrrrrr?æsr?c@seZdZdZdS)ÚBodyNotHttplibCompatiblez‡
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nrrrrrr@ìsr@cs(eZdZdZ‡fdd„Zdd„Z‡ZS)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.
    cstt|ƒ ||¡dSr)rrr)rÚpartialÚexpectedrrrrýszIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))rArBrrrrÚ__repr__sþzIncompleteRead.__repr__©rrr	r
rrCr!rrrrrõsrcs(eZdZdZ‡fdd„Zdd„Z‡ZS)ÚInvalidChunkLengthz+Invalid chunk length in a chunked response.cs(tt|ƒ | ¡|j¡||_||_dSr)rrErÚtellZlength_remainingÚresponseÚlength)rrGrHrrrr
s
ÿzInvalidChunkLength.__init__cCsd|j|jfS)Nz0InvalidChunkLength(got length %r, %i bytes read))rHrArrrrrCsþzInvalidChunkLength.__repr__rDrrrrrEsrEc@seZdZdZdS)Ú
InvalidHeaderz(The header provided was somehow invalid.NrrrrrrIsrIcs eZdZdZ‡fdd„Z‡ZS)ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemecs6|dkrd}|dkrd}nd|}tt|ƒ |¡dS)NZ	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)rrJrr6rrrr#sÿÿzProxySchemeUnknown.__init__r rrrrrJsrJc@seZdZdZdS)ÚProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrrrrrrK2srKcs eZdZdZ‡fdd„Z‡ZS)ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs$d|pd|f}tt|ƒ |¡dS)Nz%s, unparsed data: %rZUnknown)rrLr)rZdefectsZ
unparsed_datarrrrr;szHeaderParsingError.__init__r rrrrrL8srLc@seZdZdZdS)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrrrrrrM@srMN).Z
__future__rZpackages.six.moves.http_clientrZhttplib_IncompleteReadÚ	ExceptionrÚWarningr
rrrrr"r#ÚConnectionErrorr$r'r*r+r,r-r.r/r0Ú
ValueErrorr1r2r4r7r8r9r:r;r<r=r>r?r@rErIÚAssertionErrorrJrKrLrMrrrrÚ<module>sN	


		
Back to Directory File Manager