Your IP : 216.73.216.196


Current Path : /opt/alt/python35/lib/python3.5/site-packages/requests/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/requests/__pycache__/exceptions.cpython-35.pyc



m"[q�@s,dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�dee	�Z
Gdd�de	�ZGdd�de�ZGdd�de�Z
Gdd�dee�ZGdd�dee�ZGdd�dee�ZGdd�dee�ZGdd �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-d.�d.ee�ZGd/d0�d0e�Zd1S)2z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
�)�	HTTPErrorcs(eZdZdZ�fdd�Z�S)�RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    cs�|jdd�}||_|jdd�|_|dk	rd|jrdt|d�rd|jj|_tt|�j||�dS)zBInitialize RequestException with `request` and `response` objects.�responseN�request)�poprr�hasattr�superr�__init__)�self�args�kwargsr)�	__class__��D/opt/alt/python35/lib/python3.5/site-packages/requests/exceptions.pyr	s	zRequestException.__init__)�__name__�
__module__�__qualname__�__doc__r	rr)r
rrsrc@seZdZdZdS)rzAn HTTP error occurred.N)rrrrrrrrrsrc@seZdZdZdS)�ConnectionErrorzA Connection error occurred.N)rrrrrrrrr src@seZdZdZdS)�
ProxyErrorzA proxy error occurred.N)rrrrrrrrr$src@seZdZdZdS)�SSLErrorzAn SSL error occurred.N)rrrrrrrrr(src@seZdZdZdS)�Timeoutz�The request timed out.

    Catching this error will catch both
    :exc:`~requests.exceptions.ConnectTimeout` and
    :exc:`~requests.exceptions.ReadTimeout` errors.
    N)rrrrrrrrr,src@seZdZdZdS)�ConnectTimeoutz�The request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    N)rrrrrrrrr5src@seZdZdZdS)�ReadTimeoutz@The server did not send any data in the allotted amount of time.N)rrrrrrrrr<src@seZdZdZdS)�URLRequiredz*A valid URL is required to make a request.N)rrrrrrrrr@src@seZdZdZdS)�TooManyRedirectszToo many redirects.N)rrrrrrrrrDsrc@seZdZdZdS)�
MissingSchemaz/The URL schema (e.g. http or https) is missing.N)rrrrrrrrrHsrc@seZdZdZdS)�
InvalidSchemaz"See defaults.py for valid schemas.N)rrrrrrrrrLsrc@seZdZdZdS)�
InvalidURLz%The URL provided was somehow invalid.N)rrrrrrrrrPsrc@seZdZdZdS)�
InvalidHeaderz.The header value provided was somehow invalid.N)rrrrrrrrrTsrc@seZdZdZdS)�InvalidProxyURLz"The proxy URL provided is invalid.N)rrrrrrrrr Xsr c@seZdZdZdS)�ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)rrrrrrrrr!\sr!c@seZdZdZdS)�ContentDecodingErrorz!Failed to decode response contentN)rrrrrrrrr"`sr"c@seZdZdZdS)�StreamConsumedErrorz2The content for this response was already consumedN)rrrrrrrrr#dsr#c@seZdZdZdS)�
RetryErrorzCustom retries logic failedN)rrrrrrrrr$hsr$c@seZdZdZdS)�UnrewindableBodyErrorz:Requests encountered an error when trying to rewind a bodyN)rrrrrrrrr%lsr%c@seZdZdZdS)�RequestsWarningzBase warning for Requests.N)rrrrrrrrr&rsr&c@seZdZdZdS)�FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)rrrrrrrrr'wsr'c@seZdZdZdS)�RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)rrrrrrrrr(|sr(N)rZurllib3.exceptionsrZ
BaseHTTPError�IOErrorrrrrrrrrr�
ValueErrorrrrrr r!r"�	TypeErrorr#r$r%�Warningr&�DeprecationWarningr'r(rrrr�<module>s0