AlkantarClanX12
Current Path : /usr/lib/python3.6/site-packages/urllib3/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/urllib3/__pycache__/exceptions.cpython-36.pyc |
3 nf�\� � @ sL d dl mZ ddlmZ G dd� de�ZG dd� de�ZG dd � d e�Z G d d� de �Z G dd � d e�ZG dd� 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 d d!� 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 d0d1� d1e�ZG d2d3� d3e�Z G d4d5� d5e�Z!G d6d7� d7e�Z"G d8d9� d9e�Z#G d:d;� d;ee�Z$G d<d=� d=e�Z%G d>d?� d?ee�ZG d@dA� dAe�Z&G dBdC� dCe'e�Z(G dDdE� dEe�Z)G dFdG� dGe�Z*dHS )I� )�absolute_import� )�IncompleteReadc @ s e Zd ZdZdS )� HTTPErrorz#Base exception used by this module.N)�__name__� __module__�__qualname__�__doc__� r r � /usr/lib/python3.6/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&