AlkantarClanX12

Your IP : 18.226.214.91


Current Path : /lib/python3.6/site-packages/requests/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/requests/__pycache__/exceptions.cpython-36.pyc

3

��[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�ZS)�RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    csZ|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__�� /usr/lib/python3.6/exceptions.pyr	s

zRequestException.__init__)�__name__�
__module__�__qualname__�__doc__r	�
__classcell__rr)r
rrsrc@seZdZdZdS)rzAn HTTP error occurred.N)rrrrrrrrrsrc@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)rrrrrrrrr,src@seZdZdZdS)�ConnectTimeoutz�The request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    N)rrrrrrrrr5src@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)rrrrrrrrr@src@seZdZdZdS)�TooManyRedirectszToo many redirects.N)rrrrrrrrrDsrc@seZdZdZdS)�
MissingSchemaz/The URL schema (e.g. http or https) is missing.N)rrrrrrrrrHsrc@seZdZdZdS)�
InvalidSchemaz"See defaults.py for valid schemas.N)rrrrrrrrrLsrc@seZdZdZdS)�
InvalidURLz%The URL provided was somehow invalid.N)rrrrrrrrrPsrc@seZdZdZdS)�
InvalidHeaderz.The header value provided was somehow invalid.N)rrrrrrrrr Tsr c@seZdZdZdS)�InvalidProxyURLz"The proxy URL provided is invalid.N)rrrrrrrrr!Xsr!c@seZdZdZdS)�ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)rrrrrrrrr"\sr"c@seZdZdZdS)�ContentDecodingErrorz!Failed to decode response contentN)rrrrrrrrr#`sr#c@seZdZdZdS)�StreamConsumedErrorz2The content for this response was already consumedN)rrrrrrrrr$dsr$c@seZdZdZdS)�
RetryErrorzCustom retries logic failedN)rrrrrrrrr%hsr%c@seZdZdZdS)�UnrewindableBodyErrorz:Requests encountered an error when trying to rewind a bodyN)rrrrrrrrr&lsr&c@seZdZdZdS)�RequestsWarningzBase warning for Requests.N)rrrrrrrrr'rsr'c@seZdZdZdS)�FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)rrrrrrrrr(wsr(c@seZdZdZdS)�RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)rrrrrrrrr)|sr)N)rZurllib3.exceptionsrZ
BaseHTTPError�IOErrorrrrrrrrrr�
ValueErrorrrrr r!r"r#�	TypeErrorr$r%r&�Warningr'�DeprecationWarningr(r)rrrr�<module>s0