3 �Pf+ �@s�dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd d �d e�ZGd d �d e�ZGd d�de�Z Gdd�dee �Z Gdd�de �Z Gdd�de�Z Gdd�de�Z Gdd�dee�ZGdd�dee�ZGdd�dee�ZGdd�dee�ZGdd �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-d.�d.e�Zd/S)0z` 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)�ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.N)rrrrrrrrr!Xsr!c@seZdZdZdS)�ContentDecodingErrorz!Failed to decode response contentN)rrrrrrrrr"\sr"c@seZdZdZdS)�StreamConsumedErrorz2The content for this response was already consumedN)rrrrrrrrr#`sr#c@seZdZdZdS)� RetryErrorzCustom retries logic failedN)rrrrrrrrr$dsr$c@seZdZdZdS)�UnrewindableBodyErrorz:Requests encountered an error when trying to rewind a bodyN)rrrrrrrrr%hsr%c@seZdZdZdS)�RequestsWarningzBase warning for Requests.N)rrrrrrrrr&nsr&c@seZdZdZdS)�FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.N)rrrrrrrrr'ssr'c@seZdZdZdS)�RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.N)rrrrrrrrr(xsr(N)rZpip._vendor.urllib3.exceptionsrZ BaseHTTPError�IOErrorrrrrrrrrr� ValueErrorrrrr r!r"� TypeErrorr#r$r%�Warningr&�DeprecationWarningr'r(rrrr�s.