• File: exceptions.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/exceptions.cpython-37.pyc
  • Date Modified: 06/27/2022 11:19 PM
  • File size: 5.49 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

^`@sdZddlmZGdddeZGdddeZGdddeZGd	d
d
eZGdddeZGd
ddeZ	GdddeZ
Gdddee
ZGddde
ZGdddeZ
GdddeZGdddeeZGdddeeZGdddeeZGdd d eeZGd!d"d"eZGd#d$d$eZGd%d&d&eeZGd'd(d(eeZGd)d*d*eZGd+d,d,eZGd-d.d.eZGd/d0d0eeZGd1d2d2eZd3S)4z`
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__D/opt/alt/python37/lib/python3.7/site-packages/requests/exceptions.pyr	s

zRequestException.__init__)__name__
__module____qualname____doc__r	
__classcell__rr)r
rrsrc@seZdZdZdS)InvalidJSONErrorzA JSON error occurred.N)rrrrrrrrrsrc@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)rrrrrrrrr,src@seZdZdZdS)TimeoutzThe request timed out.

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

    Requests that produced this error are safe to retry.
    N)rrrrrrrrr9src@seZdZdZdS)ReadTimeoutz@The server did not send any data in the allotted amount of time.N)rrrrrrrrr@src@seZdZdZdS)URLRequiredz*A valid URL is required to make a request.N)rrrrrrrrrDsrc@seZdZdZdS)TooManyRedirectszToo many redirects.N)rrrrrrrrrHsrc@seZdZdZdS)
MissingSchemaz/The URL schema (e.g. http or https) is missing.N)rrrrrrrrrLsrc@seZdZdZdS)
InvalidSchemaz"See defaults.py for valid schemas.N)rrrrrrrrrPsrc@seZdZdZdS)
InvalidURLz%The URL provided was somehow invalid.N)rrrrrrrrr Tsr c@seZdZdZdS)
InvalidHeaderz.The header value provided was somehow invalid.N)rrrrrrrrr!Xsr!c@seZdZdZdS)InvalidProxyURLz"The proxy URL provided is invalid.N)rrrrrrrrr"\sr"c@seZdZdZdS)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)rrrrrrrrr#`sr#c@seZdZdZdS)ContentDecodingErrorz"Failed to decode response content.N)rrrrrrrrr$dsr$c@seZdZdZdS)StreamConsumedErrorz3The content for this response was already consumed.N)rrrrrrrrr%hsr%c@seZdZdZdS)
RetryErrorzCustom retries logic failedN)rrrrrrrrr&lsr&c@seZdZdZdS)UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.N)rrrrrrrrr'psr'c@seZdZdZdS)RequestsWarningzBase warning for Requests.N)rrrrrrrrr(vsr(c@seZdZdZdS)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)rrrrrrrrr)zsr)c@seZdZdZdS)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)rrrrrrrrr*~sr*N) rZurllib3.exceptionsrZ
BaseHTTPErrorIOErrorrrrrrrrrrr
ValueErrorrrr r!r"r#r$	TypeErrorr%r&r'Warningr(DeprecationWarningr)r*rrrr<module>s2