o
    E“h"  ã                   @   s<  d dl Z d dlZe jrddlmZmZ G dd„ deƒZejZej	Z	ej
Z
ejZejZejZejZejZejZejZej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é   )ÚRequestÚResponsec                	       sJ   e Zd ZdZdddœdejddddd	df‡ fd
d„Zeddd„ƒZ‡  Z	S )Ú	HTTPErrorz.
    Base class for all HTTPX exceptions.
    N)ÚrequestÚresponseÚargsr   r   r   r   Úreturnc                   s.   t ƒ j|Ž  |p|d ur|jnd | _|| _d S ©N)ÚsuperÚ__init__r   Ú_requestr   )Úselfr   r   r   ©Ú	__class__© úL/var/www/html/env_mimamsha/lib/python3.10/site-packages/httpx/_exceptions.pyr      s   
zHTTPError.__init__c                 C   s   | j d usJ ‚| j S r
   )r   )r   r   r   r   r      s   zHTTPError.request)r	   r   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtypingÚAnyr   Úpropertyr   Ú__classcell__r   r   r   r   r   	   s    ÿÿÿÿþr   c                   @   ó   e Zd ZdZdS )ÚDecodingErrorz*
    Decoding of the response failed.
    N©r   r   r   r   r   r   r   r   r   7   ó    r   c                   @   r   )ÚRedirectErrorz.
    Base class for HTTP redirect errors.
    Nr   r   r   r   r   r   @   r   r   c                   @   r   )ÚTooManyRedirectsz
    Too many redirects.
    Nr   r   r   r   r   r    F   r   r    c                   @   r   )ÚNotRedirectResponsez/
    Response was not a redirect response.
    Nr   r   r   r   r   r!   L   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"   U   r   r"   c                   @   r   )ÚRequestBodyUnavailablezl
    Had to send the request again, but the request body was streaming, and is
    no longer available.
    Nr   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$   e   r   r$   c                   @   r   )ÚResponseNotReadzn
    Attempted to access response content, without having called `read()`
    after a streaming response.
    Nr   r   r   r   r   r%   l   r   r%   c                   @   r   )ÚRequestNotReadzN
    Attempted to access request content, without having called `read()`.
    Nr   r   r   r   r   r&   s   r   r&   c                   @   r   )ÚResponseClosedz\
    Attempted to read or stream response content, but the request has been
    closed.
    Nr   r   r   r   r   r'   y   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   ÚhttpcoreÚTYPE_CHECKINGÚ_modelsr   r   Ú	Exceptionr   ÚConnectTimeoutÚReadTimeoutÚWriteTimeoutÚPoolTimeoutÚNetworkErrorÚ	ReadErrorÚ
WriteErrorÚConnectErrorÚ
CloseErrorÚ
ProxyErrorÚProtocolErrorr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r   r   r   r   Ú<module>   s8    			
