HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-310.pyc
o

@%Nev
�@s�dZddlmZddlmZGdd�de�ZGdd�de�Z	Gd	d
�d
e	e�ZGdd�de�ZGd
d�de�Z
Gdd�de
�ZGdd�de
�ZGdd�de�Z
Gdd�de
e
�ZGdd�de
�ZGdd�de�ZGdd�de�ZGdd�dee�ZGdd �d ee�ZGd!d"�d"ee�ZGd#d$�d$ee�ZGd%d&�d&e�ZGd'd(�d(e�ZGd)d*�d*ee�ZGd+d,�d,ee�ZGd-d.�d.e�ZGd/d0�d0e�ZGd1d2�d2e�ZGd3d4�d4ee �Z!Gd5d6�d6e�Z"d7S)8z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
�)�	HTTPError�)�JSONDecodeErrorcs eZdZdZ�fdd�Z�ZS)�RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    cs\|�dd�}||_|�dd�|_|dur!|js!t|d�r!|jj|_tt|�j|i|��dS)zBInitialize RequestException with `request` and `response` objects.�responseN�request)�poprr�hasattr�superr�__init__)�self�args�kwargsr��	__class__��A/usr/lib/python3/dist-packages/pip/_vendor/requests/exceptions.pyrs�
zRequestException.__init__)�__name__�
__module__�__qualname__�__doc__r�
__classcell__rrrrrsrc@�eZdZdZdS)�InvalidJSONErrorzA JSON error occurred.N�rrrrrrrrr�rc@r)rz"Couldn't decode the text into jsonNrrrrrr"rrc@r)rzAn HTTP error occurred.Nrrrrrr&rrc@r)�ConnectionErrorzA Connection error occurred.Nrrrrrr*rrc@r)�
ProxyErrorzA proxy error occurred.Nrrrrrr.rrc@r)�SSLErrorzAn SSL error occurred.Nrrrrrr2rrc@r)�Timeoutz�The request timed out.

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

    Requests that produced this error are safe to retry.
    Nrrrrrr ?rr c@r)�ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrrr!Frr!c@r)�URLRequiredz*A valid URL is required to make a request.Nrrrrrr"Jrr"c@r)�TooManyRedirectszToo many redirects.Nrrrrrr#Nrr#c@r)�
MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nrrrrrr$Rrr$c@r)�
InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nrrrrrr%Vrr%c@r)�
InvalidURLz%The URL provided was somehow invalid.Nrrrrrr&Zrr&c@r)�
InvalidHeaderz.The header value provided was somehow invalid.Nrrrrrr'^rr'c@r)�InvalidProxyURLz"The proxy URL provided is invalid.Nrrrrrr(brr(c@r)�ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nrrrrrr)frr)c@r)�ContentDecodingErrorz"Failed to decode response content.Nrrrrrr*jrr*c@r)�StreamConsumedErrorz3The content for this response was already consumed.Nrrrrrr+nrr+c@r)�
RetryErrorzCustom retries logic failedNrrrrrr,rrr,c@r)�UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nrrrrrr-vrr-c@r)�RequestsWarningzBase warning for Requests.Nrrrrrr.|rr.c@r)�FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nrrrrrr/�rr/c@r)�RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nrrrrrr0�rr0N)#r�pip._vendor.urllib3.exceptionsr�
BaseHTTPError�compatr�CompatJSONDecodeError�IOErrorrrrrrrr r!r"r#�
ValueErrorr$r%r&r'r(r)r*�	TypeErrorr+r,r-�Warningr.�DeprecationWarningr/r0rrrr�<module>s8