o {¾nh¤ã@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. csX| dd¡}||_| dd¡|_|dur!|js!t|dƒr!|jj|_tƒj|i|¤ŽdS)zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)ÚpoprrÚhasattrÚsuperÚ__init__)ÚselfÚargsÚkwargsr©Ú __class__©ú>/usr/local/lib/python3.10/dist-packages/requests/exceptions.pyr s  zRequestException.__init__)Ú__name__Ú __module__Ú __qualname__Ú__doc__r Ú __classcell__rrrrr src@óeZdZdZdS)ÚInvalidJSONErrorzA JSON error occurred.N©rrrrrrrrrórc@s eZdZdZdd„Zdd„ZdS)rz"Couldn't decode the text into jsoncOs0tj|g|¢RŽtj|g|j¢Ri|¤Ž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__cCs t |¡S)aa The __reduce__ method called when pickling the object must be the one from the JSONDecodeError (be it json/simplejson) as it expects all the arguments for instantiation, not just one like the IOError, and the MRO would by default call the __reduce__ method from the IOError due to the inheritance order. )rÚ __reduce__)r rrrr,s zJSONDecodeError.__reduce__N)rrrrr rrrrrrs rc@r)rzAn HTTP error occurred.Nrrrrrr7rrc@r)ÚConnectionErrorzA Connection error occurred.Nrrrrrr;rrc@r)Ú ProxyErrorzA proxy error occurred.Nrrrrrr?rrc@r)ÚSSLErrorzAn SSL error occurred.Nrrrrrr Crr c@r)ÚTimeoutz«The request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. Nrrrrrr!Grr!c@r)ÚConnectTimeoutz‚The request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. Nrrrrrr"Prr"c@r)Ú ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrrr#Wrr#c@r)Ú URLRequiredz*A valid URL is required to make a request.Nrrrrrr$[rr$c@r)ÚTooManyRedirectszToo many redirects.Nrrrrrr%_rr%c@r)Ú MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nrrrrrr&crr&c@r)Ú InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nrrrrrr'grr'c@r)Ú InvalidURLz%The URL provided was somehow invalid.Nrrrrrr(krr(c@r)Ú InvalidHeaderz.The header value provided was somehow invalid.Nrrrrrr)orr)c@r)ÚInvalidProxyURLz"The proxy URL provided is invalid.Nrrrrrr*srr*c@r)ÚChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nrrrrrr+wrr+c@r)ÚContentDecodingErrorz"Failed to decode response content.Nrrrrrr,{rr,c@r)ÚStreamConsumedErrorz3The content for this response was already consumed.Nrrrrrr-rr-c@r)Ú RetryErrorzCustom retries logic failedNrrrrrr.ƒrr.c@r)ÚUnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nrrrrrr/‡rr/c@r)ÚRequestsWarningzBase warning for Requests.Nrrrrrr0Žrr0c@r)ÚFileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nrrrrrr1’rr1c@r)ÚRequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nrrrrrr2–rr2N)#rÚurllib3.exceptionsrÚ BaseHTTPErrorÚcompatrrÚIOErrorrrrrr r!r"r#r$r%Ú ValueErrorr&r'r(r)r*r+r,Ú TypeErrorr-r.r/ÚWarningr0ÚDeprecationWarningr1r2rrrrÚs8