
0c@_e                 @   s,  d  Z  d d l m Z Gd d   d e  Z Gd d   d e  Z Gd d   d e  Z Gd	 d
   d
 e  Z Gd d   d e  Z Gd d   d e  Z	 Gd d   d e e	  Z
 Gd d   d e	  Z Gd d   d e  Z Gd d   d e  Z Gd d   d e e  Z Gd d   d e e  Z Gd d   d e e  Z Gd d   d e e  Z Gd d    d  e  Z Gd! d"   d" e  Z Gd# d$   d$ e e  Z Gd% d&   d& e e  Z Gd' d(   d( e  Z Gd) d*   d* e  Z Gd+ d,   d, e  Z Gd- d.   d. e e  Z Gd/ d0   d0 e  Z d1 S)2z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
    )	HTTPErrorc                   s(   e  Z d  Z d Z   f d d   Z   S)RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    c                s   | j  d d  } | |  _ | j  d d  |  _ | d k	 rd |  j rd t | d  rd |  j j |  _ t t |   j | |   d S)zBInitialize RequestException with `request` and `response` objects.responseNrequest)popr   r   hasattrsuperr   __init__)selfargskwargsr   )	__class__ >/tmp/pip-build-jynh7p1z/pip/pip/_vendor/requests/exceptions.pyr	      s    	zRequestException.__init__)__name__
__module____qualname____doc__r	   r   r   )r   r   r      s   r   c               @   s   e  Z d  Z d Z d S)r   zAn HTTP error occurred.N)r   r   r   r   r   r   r   r   r      s   r   c               @   s   e  Z d  Z d Z d S)ConnectionErrorzA Connection error occurred.N)r   r   r   r   r   r   r   r   r       s   r   c               @   s   e  Z d  Z d Z d S)
ProxyErrorzA proxy error occurred.N)r   r   r   r   r   r   r   r   r   $   s   r   c               @   s   e  Z d  Z d Z d S)SSLErrorzAn SSL error occurred.N)r   r   r   r   r   r   r   r   r   (   s   r   c               @   s   e  Z d  Z d Z d S)TimeoutzThe request timed out.

    Catching this error will catch both
    :exc:`~requests.exceptions.ConnectTimeout` and
    :exc:`~requests.exceptions.ReadTimeout` errors.
    N)r   r   r   r   r   r   r   r   r   ,   s   r   c               @   s   e  Z d  Z d Z d S)ConnectTimeoutzThe request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    N)r   r   r   r   r   r   r   r   r   5   s   r   c               @   s   e  Z d  Z d Z d S)ReadTimeoutz@The server did not send any data in the allotted amount of time.N)r   r   r   r   r   r   r   r   r   <   s   r   c               @   s   e  Z d  Z d Z d S)URLRequiredz*A valid URL is required to make a request.N)r   r   r   r   r   r   r   r   r   @   s   r   c               @   s   e  Z d  Z d Z d S)TooManyRedirectszToo many redirects.N)r   r   r   r   r   r   r   r   r   D   s   r   c               @   s   e  Z d  Z d Z d S)MissingSchemaz/The URL schema (e.g. http or https) is missing.N)r   r   r   r   r   r   r   r   r   H   s   r   c               @   s   e  Z d  Z d Z d S)InvalidSchemaz"See defaults.py for valid schemas.N)r   r   r   r   r   r   r   r   r   L   s   r   c               @   s   e  Z d  Z d Z d S)
InvalidURLz%The URL provided was somehow invalid.N)r   r   r   r   r   r   r   r   r   P   s   r   c               @   s   e  Z d  Z d Z d S)InvalidHeaderz.The header value provided was somehow invalid.N)r   r   r   r   r   r   r   r   r   T   s   r   c               @   s   e  Z d  Z d Z d S)InvalidProxyURLz"The proxy URL provided is invalid.N)r   r   r   r   r   r   r   r   r    X   s   r    c               @   s   e  Z d  Z d Z d S)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)r   r   r   r   r   r   r   r   r!   \   s   r!   c               @   s   e  Z d  Z d Z d S)ContentDecodingErrorz"Failed to decode response content.N)r   r   r   r   r   r   r   r   r"   `   s   r"   c               @   s   e  Z d  Z d Z d S)StreamConsumedErrorz3The content for this response was already consumed.N)r   r   r   r   r   r   r   r   r#   d   s   r#   c               @   s   e  Z d  Z d Z d S)
RetryErrorzCustom retries logic failedN)r   r   r   r   r   r   r   r   r$   h   s   r$   c               @   s   e  Z d  Z d Z d S)UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.N)r   r   r   r   r   r   r   r   r%   l   s   r%   c               @   s   e  Z d  Z d Z d S)RequestsWarningzBase warning for Requests.N)r   r   r   r   r   r   r   r   r&   r   s   r&   c               @   s   e  Z d  Z d Z d S)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)r   r   r   r   r   r   r   r   r'   v   s   r'   c               @   s   e  Z d  Z d Z d S)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)r   r   r   r   r   r   r   r   r(   z   s   r(   N)r   Zpip._vendor.urllib3.exceptionsr   BaseHTTPErrorIOErrorr   r   r   r   r   r   r   r   r   
ValueErrorr   r   r   r   r    r!   r"   	TypeErrorr#   r$   r%   Warningr&   DeprecationWarningr'   r(   r   r   r   r   <module>   s0   	