File: //lib/python3.6/site-packages/requests/__pycache__/exceptions.cpython-36.opt-1.pyc
3
æÈ[q ã @ s” d Z ddlmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZG d d
„ d
eƒZG dd„ deƒZG d
d„ deƒZ G dd„ dee ƒZ
G dd„ de ƒZG dd„ deƒZG dd„ deƒZ
G dd„ deeƒZG dd„ deeƒZG dd„ deeƒZG dd„ deeƒZG dd „ d eƒZG d!d"„ d"eƒZG d#d$„ d$eeƒZG d%d&„ d&eeƒZG d'd(„ d(eƒZG d)d*„ d*eƒZG d+d,„ d,eƒZG d-d.„ d.eeƒZG d/d0„ d0eƒZd1S )2z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
é )Ú HTTPErrorc s e Zd ZdZ‡ fdd„Z‡ ZS )ÚRequestExceptionzTThere was an ambiguous exception that occurred while handling your
request.
c sZ |j ddƒ}|| _|j ddƒ| _|dk rD| j rDt|dƒrD| jj| _tt| ƒj||Ž dS )zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)Úpopr r ÚhasattrÚsuperr Ú__init__)ÚselfÚargsÚkwargsr )Ú __class__© ú /usr/lib/python3.6/exceptions.pyr s
zRequestException.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r Ú
__classcell__r r )r
r r s r c @ s e Zd ZdZdS )r zAn HTTP error occurred.N)r r r r r r r r r s r c @ s e Zd ZdZdS )ÚConnectionErrorzA Connection error occurred.N)r r r r r r r r r s r c @ s e Zd ZdZdS )Ú
ProxyErrorzA proxy error occurred.N)r r r r r r r r r $ s r c @ s e Zd ZdZdS )ÚSSLErrorzAn SSL error occurred.N)r r r r r r r r r ( s r c @ s e Zd ZdZdS )ÚTimeoutz«The request timed out.
Catching this error will catch both
:exc:`~requests.exceptions.ConnectTimeout` and
:exc:`~requests.exceptions.ReadTimeout` errors.
N)r r r r r r r r r , s r c @ s e Zd ZdZdS )ÚConnectTimeoutz‚The request timed out while trying to connect to the remote server.
Requests that produced this error are safe to retry.
N)r r r r r r r r r 5 s r c @ s e Zd ZdZdS )ÚReadTimeoutz@The server did not send any data in the allotted amount of time.N)r r r r r r r r r <