U ÕÆcãã@sÂdZddlmZddlmZGdd„deƒZGdd„deƒZ Gd d „d e eƒZGd d „d eƒZGd d„deƒZ Gdd„de ƒZ Gdd„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. csT| dd¡}||_| dd¡|_|dk rB|jsBt|dƒrB|jj|_tƒj||ŽdS)zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)ÚpoprrÚhasattrÚsuperÚ__init__)ÚselfÚargsÚkwargsr©Ú __class__©ú:/tmp/pip-target-9754fe34/lib/python/requests/exceptions.pyr s   zRequestException.__init__)Ú__name__Ú __module__Ú __qualname__Ú__doc__r Ú __classcell__rrrrr src@seZdZdZdS)ÚInvalidJSONErrorzA JSON error occurred.N©rrrrrrrrrsrc@seZdZdZdd„ZdS)rz"Couldn't decode the text into jsoncOs(tj|f|žŽtj|f|jž|ŽdS)a Construct the JSONDecodeError instance first with all args. Then use it's args to construct the IOError so that the json specific args aren't used as IOError specific args and the error message from JSONDecodeError is preserved. N)ÚCompatJSONDecodeErrorr rr )r r rrrrr "szJSONDecodeError.__init__N)rrrrr rrrrrsrc@seZdZdZdS)rzAn HTTP error occurred.Nrrrrrr-src@seZdZdZdS)ÚConnectionErrorzA Connection error occurred.Nrrrrrr1src@seZdZdZdS)Ú ProxyErrorzA proxy error occurred.Nrrrrrr5src@seZdZdZdS)ÚSSLErrorzAn SSL error occurred.Nrrrrrr9src@seZdZdZdS)ÚTimeoutz«The request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. Nrrrrrr=src@seZdZdZdS)ÚConnectTimeoutz‚The request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. NrrrrrrFsrc@seZdZdZdS)Ú ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrrr Msr c@seZdZdZdS)Ú URLRequiredz*A valid URL is required to make a request.Nrrrrrr!Qsr!c@seZdZdZdS)ÚTooManyRedirectszToo many redirects.Nrrrrrr"Usr"c@seZdZdZdS)Ú MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nrrrrrr#Ysr#c@seZdZdZdS)Ú InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nrrrrrr$]sr$c@seZdZdZdS)Ú InvalidURLz%The URL provided was somehow invalid.Nrrrrrr%asr%c@seZdZdZdS)Ú InvalidHeaderz.The header value provided was somehow invalid.Nrrrrrr&esr&c@seZdZdZdS)ÚInvalidProxyURLz"The proxy URL provided is invalid.Nrrrrrr'isr'c@seZdZdZdS)ÚChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nrrrrrr(msr(c@seZdZdZdS)ÚContentDecodingErrorz"Failed to decode response content.Nrrrrrr)qsr)c@seZdZdZdS)ÚStreamConsumedErrorz3The content for this response was already consumed.Nrrrrrr*usr*c@seZdZdZdS)Ú RetryErrorzCustom retries logic failedNrrrrrr+ysr+c@seZdZdZdS)ÚUnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nrrrrrr,}sr,c@seZdZdZdS)ÚRequestsWarningzBase warning for Requests.Nrrrrrr-„sr-c@seZdZdZdS)ÚFileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nrrrrrr.ˆsr.c@seZdZdZdS)ÚRequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nrrrrrr/Œsr/N)#rZurllib3.exceptionsrÚ BaseHTTPErrorÚcompatrrÚIOErrorrrrrrrrr r!r"Ú ValueErrorr#r$r%r&r'r(r)Ú TypeErrorr*r+r,ÚWarningr-ÚDeprecationWarningr.r/rrrrÚs6