Current File : //lib/python3.9/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-39.pyc
a

[��f��@s�dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de�Z
Gdd�dee
�ZGdd�de
�ZGdd�de�Z
Gdd�de�ZGdd�dee�ZGdd�dee�ZGdd�dee�ZGdd �d ee�ZGd!d"�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/d0�d0ee�ZGd1d2�d2e�Zd3S)4z`
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.
    cs\|�dd�}||_|�dd�|_|durB|jsBt|d�rB|jj|_tt|�j|i|��dS)zBInitialize RequestException with `request` and `response` objects.�responseN�request)�poprr�hasattr�superr�__init__)�self�args�kwargsr��	__class__��C/usr/lib/python3.9/site-packages/pip/_vendor/requests/exceptions.pyr	s�
zRequestException.__init__)�__name__�
__module__�__qualname__�__doc__r	�
__classcell__rrr
rrsrc@seZdZdZdS)�InvalidJSONErrorzA JSON error occurred.N�rrrrrrrrrsrc@seZdZdZdS)rzAn HTTP error occurred.Nrrrrrr src@seZdZdZdS)�ConnectionErrorzA Connection error occurred.Nrrrrrr$src@seZdZdZdS)�
ProxyErrorzA proxy error occurred.Nrrrrrr(src@seZdZdZdS)�SSLErrorzAn SSL error occurred.Nrrrrrr,src@seZdZdZdS)�Timeoutz�The request timed out.

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

    Requests that produced this error are safe to retry.
    Nrrrrrr9src@seZdZdZdS)�ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrrr@src@seZdZdZdS)�URLRequiredz*A valid URL is required to make a request.NrrrrrrDsrc@seZdZdZdS)�TooManyRedirectszToo many redirects.NrrrrrrHsrc@seZdZdZdS)�
MissingSchemaz/The URL schema (e.g. http or https) is missing.Nrrrrrr Lsr c@seZdZdZdS)�
InvalidSchemaz"See defaults.py for valid schemas.Nrrrrrr!Psr!c@seZdZdZdS)�
InvalidURLz%The URL provided was somehow invalid.Nrrrrrr"Tsr"c@seZdZdZdS)�
InvalidHeaderz.The header value provided was somehow invalid.Nrrrrrr#Xsr#c@seZdZdZdS)�InvalidProxyURLz"The proxy URL provided is invalid.Nrrrrrr$\sr$c@seZdZdZdS)�ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nrrrrrr%`sr%c@seZdZdZdS)�ContentDecodingErrorz"Failed to decode response content.Nrrrrrr&dsr&c@seZdZdZdS)�StreamConsumedErrorz3The content for this response was already consumed.Nrrrrrr'hsr'c@seZdZdZdS)�
RetryErrorzCustom retries logic failedNrrrrrr(lsr(c@seZdZdZdS)�UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nrrrrrr)psr)c@seZdZdZdS)�RequestsWarningzBase warning for Requests.Nrrrrrr*vsr*c@seZdZdZdS)�FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nrrrrrr+zsr+c@seZdZdZdS)�RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nrrrrrr,~sr,N) rZpip._vendor.urllib3.exceptionsrZ
BaseHTTPError�IOErrorrrrrrrrrrr�
ValueErrorr r!r"r#r$r%r&�	TypeErrorr'r(r)�Warningr*�DeprecationWarningr+r,rrrr�<module>s2