3

V'ícj
ã@sÂdZddlmZddlmZGdd„deƒZGdd„deƒZ	Gd	d
„d
e	eƒZGdd„deƒZGd
d„deƒZ
Gdd„de
ƒZGdd„de
ƒZGdd„deƒZ
Gdd„de
e
ƒZGdd„de
ƒZGdd„deƒZGdd„deƒZGdd„deeƒZGdd „d eeƒZGd!d"„d"eeƒZGd#d$„d$eeƒZGd%d&„d&eƒZGd'd(„d(eƒZGd)d*„d*eeƒZGd+d,„d,eeƒZGd-d.„d.eƒZGd/d0„d0eƒZGd1d2„d2eƒZGd3d4„d4ee ƒZ!Gd5d6„d6eƒZ"d7S)8z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
é)Ú	HTTPErroré)ÚJSONDecodeErrorcs eZdZdZ‡fdd„Z‡ZS)ÚRequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    csZ|jddƒ}||_|jddƒ|_|dk	rD|jrDt|dƒrD|jj|_tt|ƒj||ŽdS)zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)ÚpoprrÚhasattrÚsuperrÚ__init__)ÚselfÚargsÚkwargsr)Ú	__class__©ú7/tmp/pip-build-gk9425m9/requests/requests/exceptions.pyrs

zRequestException.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rÚ
__classcell__rr)rrrsrc@seZdZdZdS)ÚInvalidJSONErrorzA JSON error occurred.N)rrrrrrrrrsrc@seZdZdZdS)rz"Couldn't decode the text into jsonN)rrrrrrrrr"src@seZdZdZdS)rzAn HTTP error occurred.N)rrrrrrrrr&src@seZdZdZdS)ÚConnectionErrorzA Connection error occurred.N)rrrrrrrrr*src@seZdZdZdS)Ú
ProxyErrorzA proxy error occurred.N)rrrrrrrrr.src@seZdZdZdS)ÚSSLErrorzAn SSL error occurred.N)rrrrrrrrr2src@seZdZdZdS)ÚTimeoutz«The request timed out.

    Catching this error will catch both
    :exc:`~requests.exceptions.ConnectTimeout` and
    :exc:`~requests.exceptions.ReadTimeout` errors.
    N)rrrrrrrrr6src@seZdZdZdS)ÚConnectTimeoutz‚The request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    N)rrrrrrrrr?src@seZdZdZdS)ÚReadTimeoutz@The server did not send any data in the allotted amount of time.N)rrrrrrrrrFsrc@seZdZdZdS)ÚURLRequiredz*A valid URL is required to make a request.N)rrrrrrrrrJsrc@seZdZdZdS)ÚTooManyRedirectszToo many redirects.N)rrrrrrrrrNsrc@seZdZdZdS)Ú
MissingSchemaz/The URL scheme (e.g. http or https) is missing.N)rrrrrrrrr Rsr c@seZdZdZdS)Ú
InvalidSchemaz9The URL scheme provided is either invalid or unsupported.N)rrrrrrrrr!Vsr!c@seZdZdZdS)Ú
InvalidURLz%The URL provided was somehow invalid.N)rrrrrrrrr"Zsr"c@seZdZdZdS)Ú
InvalidHeaderz.The header value provided was somehow invalid.N)rrrrrrrrr#^sr#c@seZdZdZdS)ÚInvalidProxyURLz"The proxy URL provided is invalid.N)rrrrrrrrr$bsr$c@seZdZdZdS)ÚChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)rrrrrrrrr%fsr%c@seZdZdZdS)ÚContentDecodingErrorz"Failed to decode response content.N)rrrrrrrrr&jsr&c@seZdZdZdS)ÚStreamConsumedErrorz3The content for this response was already consumed.N)rrrrrrrrr'nsr'c@seZdZdZdS)Ú
RetryErrorzCustom retries logic failedN)rrrrrrrrr(rsr(c@seZdZdZdS)ÚUnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.N)rrrrrrrrr)vsr)c@seZdZdZdS)ÚRequestsWarningzBase warning for Requests.N)rrrrrrrrr*|sr*c@seZdZdZdS)ÚFileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)rrrrrrrrr+€sr+c@seZdZdZdS)ÚRequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)rrrrrrrrr,„sr,N)#rZurllib3.exceptionsrÚ
BaseHTTPErrorÚcompatrZCompatJSONDecodeErrorÚIOErrorrrrrrrrrrrÚ
ValueErrorr r!r"r#r$r%r&Ú	TypeErrorr'r(r)ÚWarningr*ÚDeprecationWarningr+r,rrrrÚ<module>s6