U
    ÑŠ]o
  ã                   @   sb  d dl Z e jrddlmZmZ G dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d d!„ d!eƒZG d"d#„ d#eƒZG d$d%„ d%eƒZG d&d'„ d'eƒZG d(d)„ d)eƒZG d*d+„ d+eƒZdS ),é    Né   )ÚBaseRequestÚBaseResponsec                       s6   e Zd ZdZdddœejddddœ‡ fdd„Z‡  ZS )	Ú	HTTPErrorz(
    Base class for Httpx exception
    N)ÚrequestÚresponser   r   )Úargsr   r   Úreturnc                   s*   || _ |pt| j dd ƒ| _tƒ j|Ž  d S )Nr   )r   Úgetattrr   ÚsuperÚ__init__)Úselfr   r   r   ©Ú	__class__© úp/var/www/html/staging.mfahmagazine.net/magazine_api/magazine_env/lib/python3.8/site-packages/httpx/exceptions.pyr      s    zHTTPError.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtypingZAnyr   Ú__classcell__r   r   r   r   r      s   üûr   c                   @   s   e Zd ZdZdS )ÚTimeoutz(
    A base class for all timeouts.
    N©r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚConnectTimeoutz2
    Timeout while establishing a connection.
    Nr   r   r   r   r   r       s   r   c                   @   s   e Zd ZdZdS )ÚReadTimeoutz.
    Timeout while reading response data.
    Nr   r   r   r   r   r   &   s   r   c                   @   s   e Zd ZdZdS )ÚWriteTimeoutz-
    Timeout while writing request data.
    Nr   r   r   r   r   r   ,   s   r   c                   @   s   e Zd ZdZdS )ÚPoolTimeoutzF
    Timeout while waiting to acquire a connection from the pool.
    Nr   r   r   r   r   r   2   s   r   c                   @   s   e Zd ZdZdS )Ú
ProxyErrorz#
    Error from within a proxy
    Nr   r   r   r   r   r   8   s   r   c                   @   s   e Zd ZdZdS )ÚProtocolErrorz
    Malformed HTTP.
    Nr   r   r   r   r   r   A   s   r   c                   @   s   e Zd ZdZdS )ÚDecodingErrorz*
    Decoding of the response failed.
    Nr   r   r   r   r   r    G   s   r    c                   @   s   e Zd ZdZdS )ÚRedirectErrorz.
    Base class for HTTP redirect errors.
    Nr   r   r   r   r   r!   P   s   r!   c                   @   s   e Zd ZdZdS )ÚTooManyRedirectsz
    Too many redirects.
    Nr   r   r   r   r   r"   V   s   r"   c                   @   s   e Zd ZdZdS )ÚRedirectBodyUnavailablezf
    Got a redirect response, but the request body was streaming, and is
    no longer available.
    Nr   r   r   r   r   r#   \   s   r#   c                   @   s   e Zd ZdZdS )ÚRedirectLoopz!
    Infinite redirect loop.
    Nr   r   r   r   r   r$   c   s   r$   c                   @   s   e Zd ZdZdS )ÚNotRedirectResponsez/
    Response was not a redirect response.
    Nr   r   r   r   r   r%   i   s   r%   c                   @   s   e Zd ZdZdS )ÚStreamErrorz‡
    The base class for stream exceptions.

    The developer made an error in accessing the request stream in
    an invalid way.
    Nr   r   r   r   r   r&   r   s   r&   c                   @   s   e Zd ZdZdS )ÚStreamConsumedzf
    Attempted to read or stream response content, but the content has already
    been streamed.
    Nr   r   r   r   r   r'   {   s   r'   c                   @   s   e Zd ZdZdS )ÚResponseNotReadzn
    Attempted to access response content, without having called `read()`
    after a streaming response.
    Nr   r   r   r   r   r(   ‚   s   r(   c                   @   s   e Zd ZdZdS )ÚResponseClosedz\
    Attempted to read or stream response content, but the request has been
    closed.
    Nr   r   r   r   r   r)   ‰   s   r)   c                   @   s   e Zd ZdZdS )Ú
InvalidURLzC
    URL was missing a hostname, or was not one of HTTP/HTTPS.
    Nr   r   r   r   r   r*   “   s   r*   c                   @   s   e Zd ZdZdS )ÚCookieConflictzM
    Attempted to lookup a cookie by name, but multiple cookies existed.
    Nr   r   r   r   r   r+   ™   s   r+   )r   ZTYPE_CHECKINGZmodelsr   r   Ú	Exceptionr   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r   r   r   r   Ú<module>   s,   				
