o
    ‚Ýho
  ã                   @   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                	       s<   e Zd ZdZdddœdejddddd	df‡ fd
d„Z‡  ZS )Ú	HTTPErrorz(
    Base class for Httpx exception
    N)ÚrequestÚresponseÚargsr   r   r   r   Úreturnc                   s*   || _ |pt| j dd ƒ| _tƒ j|Ž  d S )Nr   )r   Úgetattrr   ÚsuperÚ__init__)Úselfr   r   r   ©Ú	__class__© úX/var/www/html/magazine_api/magazine_env/lib/python3.10/site-packages/httpx/exceptions.pyr      s   zHTTPError.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtypingÚAnyr   Ú__classcell__r   r   r   r   r      s    üþýüûr   c                   @   ó   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      ó    r   c                   @   r   )ÚConnectTimeoutz2
    Timeout while establishing a connection.
    Nr   r   r   r   r   r       r   r   c                   @   r   )ÚReadTimeoutz.
    Timeout while reading response data.
    Nr   r   r   r   r   r   &   r   r   c                   @   r   )ÚWriteTimeoutz-
    Timeout while writing request data.
    Nr   r   r   r   r   r   ,   r   r   c                   @   r   )ÚPoolTimeoutzF
    Timeout while waiting to acquire a connection from the pool.
    Nr   r   r   r   r   r    2   r   r    c                   @   r   )Ú
ProxyErrorz#
    Error from within a proxy
    Nr   r   r   r   r   r!   8   r   r!   c                   @   r   )ÚProtocolErrorz
    Malformed HTTP.
    Nr   r   r   r   r   r"   A   r   r"   c                   @   r   )ÚDecodingErrorz*
    Decoding of the response failed.
    Nr   r   r   r   r   r#   G   r   r#   c                   @   r   )ÚRedirectErrorz.
    Base class for HTTP redirect errors.
    Nr   r   r   r   r   r$   P   r   r$   c                   @   r   )ÚTooManyRedirectsz
    Too many redirects.
    Nr   r   r   r   r   r%   V   r   r%   c                   @   r   )ÚRedirectBodyUnavailablezf
    Got a redirect response, but the request body was streaming, and is
    no longer available.
    Nr   r   r   r   r   r&   \   r   r&   c                   @   r   )ÚRedirectLoopz!
    Infinite redirect loop.
    Nr   r   r   r   r   r'   c   r   r'   c                   @   r   )ÚNotRedirectResponsez/
    Response was not a redirect response.
    Nr   r   r   r   r   r(   i   r   r(   c                   @   r   )Ú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   r   r)   c                   @   r   )ÚStreamConsumedzf
    Attempted to read or stream response content, but the content has already
    been streamed.
    Nr   r   r   r   r   r*   {   r   r*   c                   @   r   )ÚResponseNotReadzn
    Attempted to access response content, without having called `read()`
    after a streaming response.
    Nr   r   r   r   r   r+   ‚   r   r+   c                   @   r   )ÚResponseClosedz\
    Attempted to read or stream response content, but the request has been
    closed.
    Nr   r   r   r   r   r,   ‰   r   r,   c                   @   r   )Ú
InvalidURLzC
    URL was missing a hostname, or was not one of HTTP/HTTPS.
    Nr   r   r   r   r   r-   “   r   r-   c                   @   r   )ÚCookieConflictzM
    Attempted to lookup a cookie by name, but multiple cookies existed.
    Nr   r   r   r   r   r.   ™   r   r.   )r   ÚTYPE_CHECKINGÚ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.    				
