File: //snap/core20/2669/lib/python3/dist-packages/urllib3/__pycache__/exceptions.cpython-38.pyc
U
�Yh� � @ sL d dl mZ d dlmZ G dd� de�ZG dd� de�ZG dd� de�Z G d d
� d
e �Z
G dd� de�ZG d
d� de�ZG dd� de�Z
G dd� de�ZeZG dd� de
�ZG dd� de
�ZG dd� de�ZG dd� de�ZG dd� dee
�ZG dd� de�ZG dd � d ee �ZG d!d"� d"e �ZG d#d$� d$e �ZG d%d&� d&ee�ZG d'd(� d(e�ZG d)d*� d*e�ZG d+d,� d,e�ZG d-d.� d.e�ZG d/d0� d0e�ZG d1d2� d2e�Z G d3d4� d4e�Z!G d5d6� d6e�Z"G d7d8� d8e�Z#G d9d:� d:ee�Z$G d;d<� d<e�Z%G d=d>� d>ee�ZG d?d@� d@e�Z&G dAdB� dBe'e�Z(G dCdD� dDe�Z)G dEdF� dFe�Z*dGS )H� )�absolute_import)�IncompleteReadc @ s e Zd ZdZdS )� HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__� r
r
�4/usr/lib/python3/dist-packages/urllib3/exceptions.pyr s r c @ s e Zd ZdZdS )�HTTPWarningz!Base warning used by this module.Nr r
r
r
r r s r c @ s e Zd ZdZdd� Zdd� ZdS )� PoolErrorz/Base exception for errors caused within a pool.c C s || _ t�| d||f � d S )Nz%s: %s)�poolr �__init__)�selfr �messager
r
r r s zPoolError.__init__c C s
| j dfS )N)NN�� __class__�r r
r
r �
__reduce__ s zPoolError.__reduce__N�r r r r r r r
r
r
r r
s r
c @ s e Zd ZdZdd� Zdd� ZdS )�RequestErrorz8Base exception for PoolErrors that have associated URLs.c C s || _ t�| ||� d S �N)�urlr
r )r r r r r
r
r r s zRequestError.__init__c C s | j d | jd ffS r )r r r r
r
r r $ s zRequestError.__reduce__Nr r
r
r
r r s r c @ s e Zd ZdZdS )�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr r
r
r
r r ) s r c @ s e Zd ZdZdS )�
ProxyErrorz,Raised when the connection to a proxy fails.Nr r
r
r
r r . s r c @ s e Zd ZdZdS )�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr r
r
r
r r 3 s r c @ s e Zd ZdZdS )�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr r
r
r
r r 8 s r c @ s e Zd ZdZddd�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
Nc C s&