%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core/17212/usr/lib/python3/dist-packages/urllib3/__pycache__/
Upload File :
Create Path :
Current File : //snap/core/17212/usr/lib/python3/dist-packages/urllib3/__pycache__/exceptions.cpython-35.pyc



R/oV@�@s�ddlmZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�Z	Gdd�de�Z
Gdd�de�ZeZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�dee�ZGdd�de�ZGdd�dee�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%ee�ZGd&d'�d'e�ZGd(d)�d)e�ZGd*d+�d+e�ZGd,d-�d-e�ZGd.d/�d/e�ZGd0d1�d1e�ZGd2d3�d3e�ZGd4d5�d5e�ZGd6d7�d7ee�Z Gd8d9�d9e!e�Z"Gd:d;�d;e�Z#d<S)=�)�absolute_importc@seZdZdZdS)�	HTTPErrorz#Base exception used by this module.N)�__name__�
__module__�__qualname__�__doc__�rr�4/usr/lib/python3/dist-packages/urllib3/exceptions.pyrsrc@seZdZdZdS)�HTTPWarningz!Base warning used by this module.N)rrrrrrrr	r

sr
c@s.eZdZdZdd�Zdd�ZdS)�	PoolErrorz/Base exception for errors caused within a pool.cCs'||_tj|d||f�dS)Nz%s: %s)�poolr�__init__)�selfr�messagerrr	r
s	zPoolError.__init__cCs
|jdfS)N)NN)�	__class__)rrrr	�
__reduce__szPoolError.__reduce__N)rrrrr
rrrrr	rsrc@s.eZdZdZdd�Zdd�ZdS)�RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs ||_tj|||�dS)N)�urlrr
)rrrrrrr	r
s	zRequestError.__init__cCs|jd|jdffS)N)rr)rrrr	r szRequestError.__reduce__N)rrrrr
rrrrr	rsrc@seZdZdZdS)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrrrrrr	r%src@seZdZdZdS)�
ProxyErrorz,Raised when the connection to a proxy fails.N)rrrrrrrr	r*src@seZdZdZdS)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrrrrrr	r/src@seZdZdZdS)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrrrrrr	r4src@s%eZdZdZddd�ZdS)�
MaxRetryErroraRaised when the maximum number of retries is exceeded.

    :param pool: The connection pool
    :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
    :param string url: The requested Url
    :param exceptions.Exception reason: The underlying error

    NcCs3||_d||f}tj||||�dS)Nz0Max retries exceeded with url: %s (Caused by %r))�reasonrr
)rrrrrrrr	r
Is	
zMaxRetryError.__init__)rrrrr
rrrr	r?src@s%eZdZdZddd�ZdS)�HostChangedErrorz?Raised when an existing pool gets a request for a foreign host.�cCs-d|}tj||||�||_dS)Nz)Tried to open a foreign host with url: %s)rr
�retries)rrrrrrrr	r
Us
zHostChangedError.__init__N)rrrrr
rrrr	rRsrc@seZdZdZdS)�TimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrrrrrr	r[src@seZdZdZdS)�TimeoutErrorz� Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    N)rrrrrrrr	r`src@seZdZdZdS)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrrrrrr	risrc@seZdZdZdS)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrrrrrr	r psr c@seZdZdZdS)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrrrrrr	r!usr!c@seZdZdZdS)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.N)rrrrrrrr	r"zsr"c@seZdZdZdS)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.N)rrrrrrrr	r#sr#c@seZdZdZdS)�LocationValueErrorz<Raised when there is something wrong with a given URL input.N)rrrrrrrr	r$�sr$c@s"eZdZdZdd�ZdS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCs'd|}tj||�||_dS)NzFailed to parse: %s)rr
�location)rr&rrrr	r
�s
zLocationParseError.__init__N)rrrrr
rrrr	r%�sr%c@s"eZdZdZdZdZdS)�
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrrrZ
GENERIC_ERRORZSPECIFIC_ERRORrrrr	r'�sr'c@seZdZdZdS)�SecurityWarningz/Warned when perfoming security reducing actionsN)rrrrrrrr	r(�sr(c@seZdZdZdS)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.N)rrrrrrrr	r)�sr)c@seZdZdZdS)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.N)rrrrrrrr	r*�sr*c@seZdZdZdS)�SystemTimeWarningz0Warned when system time is suspected to be wrongN)rrrrrrrr	r+�sr+c@seZdZdZdS)�InsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.N)rrrrrrrr	r,�sr,c@seZdZdZdS)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.N)rrrrrrrr	r-�sr-c@seZdZdZdS)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.N)rrrrrrrr	r.�sr.cs(eZdZdZ�fdd�Z�S)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemecs$d|}tt|�j|�dS)NzNot supported proxy scheme %s)�superr/r
)r�schemer)rrr	r
�s
zProxySchemeUnknown.__init__)rrrrr
rr)rr	r/�sr/cs(eZdZdZ�fdd�Z�S)�HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs0d|pd|f}tt|�j|�dS)Nz%s, unparsed data: %rZUnknown)r0r2r
)rZdefectsZ
unparsed_datar)rrr	r
�szHeaderParsingError.__init__)rrrrr
rr)rr	r2�sr2N)$Z
__future__r�	Exceptionr�Warningr
rrrrrr�ConnectionErrorrrrrrr r!r"r#�
ValueErrorr$r%r'r(r)r*r+r,r-r.�AssertionErrorr/r2rrrr	�<module>s<		
	

Zerion Mini Shell 1.0