U s_Y @sdZddlmZGdddeZGdddeZGdddeZGd d d eZGd d d eZGd ddeZ Gdddee Z Gddde Z GdddeZ GdddeZ GdddeeZGdddeeZGdddeeZGdddeeZGdd d eZGd!d"d"eZGd#d$d$eeZGd%d&d&eeZGd'd(d(eZGd)d*d*eZGd+d,d,eZGd-d.d.eeZGd/d0d0eZd1S)2z` requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. ) HTTPErrorcs eZdZdZfddZZS)RequestExceptionzTThere was an ambiguous exception that occurred while handling your request. csX|dd}||_|dd|_|dk rB|jsBt|drB|jj|_tt|j||dS)zBInitialize RequestException with `request` and `response` objects.responseNrequest)poprrhasattrsuperr__init__)selfargskwargsr __class__k/private/var/folders/y3/n__7lzs1191bf6ypqtmfbcr1rfn98y/T/pip-unpacked-wheel-q8tyoxe4/requests/exceptions.pyr s  zRequestException.__init__)__name__ __module__ __qualname____doc__r __classcell__rrr rr src@seZdZdZdS)rzAn HTTP error occurred.Nrrrrrrrrrsrc@seZdZdZdS)ConnectionErrorzA Connection error occurred.Nrrrrrr src@seZdZdZdS) ProxyErrorzA proxy error occurred.Nrrrrrr$src@seZdZdZdS)SSLErrorzAn SSL error occurred.Nrrrrrr(src@seZdZdZdS)TimeoutzThe request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. Nrrrrrr,src@seZdZdZdS)ConnectTimeoutzThe request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. Nrrrrrr5src@seZdZdZdS) ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrrr<src@seZdZdZdS) URLRequiredz*A valid URL is required to make a request.Nrrrrrr@src@seZdZdZdS)TooManyRedirectszToo many redirects.NrrrrrrDsrc@seZdZdZdS) MissingSchemaz/The URL schema (e.g. http or https) is missing.NrrrrrrHsrc@seZdZdZdS) InvalidSchemaz"See defaults.py for valid schemas.Nrrrrrr Lsr c@seZdZdZdS) InvalidURLz%The URL provided was somehow invalid.Nrrrrrr!Psr!c@seZdZdZdS) InvalidHeaderz.The header value provided was somehow invalid.Nrrrrrr"Tsr"c@seZdZdZdS)InvalidProxyURLz"The proxy URL provided is invalid.Nrrrrrr#Xsr#c@seZdZdZdS)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nrrrrrr$\sr$c@seZdZdZdS)ContentDecodingErrorz"Failed to decode response content.Nrrrrrr%`sr%c@seZdZdZdS)StreamConsumedErrorz3The content for this response was already consumed.Nrrrrrr&dsr&c@seZdZdZdS) RetryErrorzCustom retries logic failedNrrrrrr'hsr'c@seZdZdZdS)UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nrrrrrr(lsr(c@seZdZdZdS)RequestsWarningzBase warning for Requests.Nrrrrrr)rsr)c@seZdZdZdS)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nrrrrrr*vsr*c@seZdZdZdS)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nrrrrrr+zsr+N)rZurllib3.exceptionsr BaseHTTPErrorIOErrorrrrrrrrrr ValueErrorrr r!r"r#r$r% TypeErrorr&r'r(Warningr)DeprecationWarningr*r+rrrrs0