%PDF- %PDF-
Direktori : /snap/core18/current/usr/lib/python3/dist-packages/urllib3/__pycache__/ |
Current File : //snap/core18/current/usr/lib/python3/dist-packages/urllib3/__pycache__/exceptions.cpython-36.pyc |
3 �;g� � @ 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.N)r r r r 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 || _ tj| 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 || _ tj| ||� d S )N)�urlr r )r r r r r r r r s zRequestError.__init__c C s | j d | jd ffS )N)r r )r r r r r # s zRequestError.__reduce__N)r r r r r r r r r r r s r c @ s e Zd ZdZdS )�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)r r r r r r r r r ( s r c @ s e Zd ZdZdS )� ProxyErrorz,Raised when the connection to a proxy fails.N)r r r r r r r r r - s r c @ s e Zd ZdZdS )�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)r r r r r r r r r 2 s r c @ s e Zd ZdZdS )� ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)r r r r r r r r r 7 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&