î
)Ú X,  ã               @   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 e ƒ Z Gd# d$ „  d$ e e ƒ Z Gd% d& „  d& e ƒ Z Gd' d( „  d( e ƒ Z Gd) d* „  d* e e ƒ Z d+ S),z`
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	 rg |  j rg t | d ƒ rg |  j j |  _ n  t t |  ƒ j | | Ž  d S)zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)Úpopr   r   ÚhasattrÚsuperr   Ú__init__)ÚselfÚargsÚkwargsr   )Ú	__class__© úC/home/ubuntu/projects/ifolica/build/requests/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)ÚTimeoutz«The 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)ÚConnectTimeoutz‚The 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)ÚChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)r   r   r   r   r   r   r   r   r    X   s   r    c               @   s   e  Z d  Z d Z d S)ÚContentDecodingErrorz!Failed to decode response contentN)r   r   r   r   r   r   r   r   r!   \   s   r!   c               @   s   e  Z d  Z d Z d S)ÚStreamConsumedErrorz2The content for this response was already consumedN)r   r   r   r   r   r   r   r   r"   `   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#   d   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$   k   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%   p   s   r%   N)r   Zpackages.urllib3.exceptionsr   ÚBaseHTTPErrorÚIOErrorr   r   r   r   r   r   r   r   r   Ú
ValueErrorr   r   r   r   r    r!   Ú	TypeErrorr"   r#   ÚWarningr$   ÚDeprecationWarningr%   r   r   r   r   Ú<module>   s*   	