Viewing File: /opt/alt/python35/lib/python3.5/site-packages/urllib3/__pycache__/exceptions.cpython-35.pyc



βμ‚Vίγ@s½ddlmZGdd„deƒZGdd„deƒZGdd„deƒZGdd	„d	eƒZGd
d„deƒZGdd
„d
eƒZ	Gdd„deƒZ
Gdd„deƒZeZGdd„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZGdd„deeƒZGdd„deƒZGdd„deeƒ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ƒZGd.d/„d/eƒZGd0d1„d1eƒZGd2d3„d3eƒZGd4d5„d5eƒZGd6d7„d7eƒZ Gd8d9„d9eeƒZ!Gd:d;„d;e"eƒZ#Gd<d=„d=eƒZ$d>S)?ι)Ϊabsolute_importc@seZdZdZdS)Ϊ	HTTPErrorz#Base exception used by this module.N)Ϊ__name__Ϊ
__module__Ϊ__qualname__Ϊ__doc__©rrϊ/exceptions.pyrsrc@seZdZdZdS)ΪHTTPWarningz!Base warning used by this module.N)rrrrrrrr	r

sr
c@s.eZdZdZdd„Zdd„ZdS)Ϊ	PoolErrorz/Base exception for errors caused within a pool.cCs'||_tj|d||fƒdS)Nz%s: %s)ΪpoolrΪ__init__)ΪselfrΪmessagerrr	r
s	zPoolError.__init__cCs
|jdfS)N)NN)Ϊ	__class__)rrrr	Ϊ
__reduce__szPoolError.__reduce__N)rrrrr
rrrrr	rsrc@s.eZdZdZdd„Zdd„ZdS)ΪRequestErrorz8Base exception for PoolErrors that have associated URLs.cCs ||_tj|||ƒdS)N)Ϊurlrr
)rrrrrrr	r
s	zRequestError.__init__cCs|jd|jdffS)N)rr)rrrr	r szRequestError.__reduce__N)rrrrr
rrrrr	rsrc@seZdZdZdS)ΪSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrrrrrr	r%src@seZdZdZdS)Ϊ
ProxyErrorz,Raised when the connection to a proxy fails.N)rrrrrrrr	r*src@seZdZdZdS)ΪDecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrrrrrr	r/src@seZdZdZdS)Ϊ
ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrrrrrr	r4src@s%eZdZdZddd„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

    NcCs3||_d||f}tj||||ƒdS)Nz0Max retries exceeded with url: %s (Caused by %r))Ϊreasonrr
)rrrrrrrr	r
Is	
zMaxRetryError.__init__)rrrrr
rrrr	r?src@s%eZdZdZddd„ZdS)ΪHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.ιcCs-d|}tj||||ƒ||_dS)Nz)Tried to open a foreign host with url: %s)rr
Ϊretries)rrrrrrrr	r
Us
zHostChangedError.__init__N)rrrrr
rrrr	rRsrc@seZdZdZdS)ΪTimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrrrrrr	r[src@seZdZdZdS)ΪTimeoutErrorzΐ Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    N)rrrrrrrr	r`src@seZdZdZdS)ΪReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrrrrrr	risrc@seZdZdZdS)ΪConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrrrrrr	r psr c@seZdZdZdS)ΪNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrrrrrr	r!usr!c@seZdZdZdS)ΪEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.N)rrrrrrrr	r"zsr"c@seZdZdZdS)ΪClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.N)rrrrrrrr	r#sr#c@seZdZdZdS)ΪLocationValueErrorz<Raised when there is something wrong with a given URL input.N)rrrrrrrr	r$„sr$c@s"eZdZdZdd„ZdS)ΪLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCs'd|}tj||ƒ||_dS)NzFailed to parse: %s)rr
Ϊlocation)rr&rrrr	r
Œs
zLocationParseError.__init__N)rrrrr
rrrr	r%‰sr%c@s"eZdZdZdZdZdS)Ϊ
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrrrZ
GENERIC_ERRORZSPECIFIC_ERRORrrrr	r'“sr'c@seZdZdZdS)ΪSecurityWarningz/Warned when perfoming security reducing actionsN)rrrrrrrr	r(™sr(c@seZdZdZdS)ΪSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.N)rrrrrrrr	r)žsr)c@seZdZdZdS)ΪInsecureRequestWarningz/Warned when making an unverified HTTPS request.N)rrrrrrrr	r*£sr*c@seZdZdZdS)ΪSystemTimeWarningz0Warned when system time is suspected to be wrongN)rrrrrrrr	r+¨sr+c@seZdZdZdS)ΪInsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.N)rrrrrrrr	r,­sr,c@seZdZdZdS)ΪSNIMissingWarningz9Warned when making a HTTPS request without SNI available.N)rrrrrrrr	r-²sr-c@seZdZdZdS)ΪDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    N)rrrrrrrr	r.·sr.c@seZdZdZdS)ΪResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.N)rrrrrrrr	r/Ώsr/cs(eZdZdZ‡fdd†Z‡S)ΪProxySchemeUnknownz1ProxyManager does not support the supplied schemecs$d|}tt|ƒj|ƒdS)NzNot supported proxy scheme %s)Ϊsuperr0r
)rΪschemer)rrr	r
Θs
zProxySchemeUnknown.__init__)rrrrr
rr)rr	r0Δsr0cs(eZdZdZ‡fdd†Z‡S)ΪHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs0d|pd|f}tt|ƒj|ƒdS)Nz%s, unparsed data: %rZUnknown)r1r3r
)rZdefectsZ
unparsed_datar)rrr	r
ΟszHeaderParsingError.__init__)rrrrr
rr)rr	r3Νsr3N)%Z
__future__rΪ	ExceptionrΪWarningr
rrrrrrΪConnectionErrorrrrrrr r!r"r#Ϊ
ValueErrorr$r%r'r(r)r*r+r,r-r.r/ΪAssertionErrorr0r3rrrr	Ϊ<module>s>		
	
Back to Directory File Manager