Your IP : 3.12.71.166


Current Path : /opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/exceptions.cpython-37.pyc

B

^��`��@s�dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de�Z
Gdd�dee
�ZGdd�de
�ZGdd�de�Z
Gdd�de�ZGdd�dee�ZGdd�dee�ZGdd�dee�ZGdd �d ee�ZGd!d"�d"e�ZGd#d$�d$e�ZGd%d&�d&ee�ZGd'd(�d(ee�ZGd)d*�d*e�ZGd+d,�d,e�ZGd-d.�d.e�ZGd/d0�d0ee�ZGd1d2�d2e�Zd3S)4z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
�)�	HTTPErrorcs eZdZdZ�fdd�Z�ZS)�RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    csX|�dd�}||_|�dd�|_|dk	rB|jsBt|d�rB|jj|_tt|�j||�dS)zBInitialize RequestException with `request` and `response` objects.�responseN�request)�poprr�hasattr�superr�__init__)�self�args�kwargsr)�	__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)�Timeoutz�The request timed out.

    Catching this error will catch both
    :exc:`~requests.exceptions.ConnectTimeout` and
    :exc:`~requests.exceptions.ReadTimeout` errors.
    N)rrrrrrrrr0src@seZdZdZdS)�ConnectTimeoutz�The 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
BaseHTTPError�IOErrorrrrrrrrrrr�
ValueErrorrrr r!r"r#r$�	TypeErrorr%r&r'�Warningr(�DeprecationWarningr)r*rrrr�<module>s2	

?>