Ë
    ŠV.j  ã                   ó<  — d Z ddlmZ ddlmZmZ ddlmZ dZ G d„ de	«      Z
 G d	„ d
e
«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy) z"Low-level http related exceptions.é    )Úindent)ÚOptionalÚUnioné   )Ú_CIMultiDict)ÚHttpProcessingErrorc            	       ób   — e Zd ZdZdZdZdZddddœdee   de	dee
   d	dfd
„Zd	e	fd„Zd	e	fd„Zy)r   zèHTTP error.

    Shortcut for raising HTTP errors with custom code, message and headers.

    code: HTTP Error code.
    message: (optional) Error message.
    headers: (optional) Headers to be sent in response, a list of pairs
    r   Ú N)ÚcodeÚmessageÚheadersr   r   r   Úreturnc                ó2   — |�|| _         || _        || _        y )N)r   r   r   )Úselfr   r   r   s       úYC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\aiohttp/http_exceptions.pyÚ__init__zHttpProcessingError.__init__   s   € ð ÐØˆDŒIØˆŒØˆ�ó    c                 óP   — t        | j                  d«      }| j                  › d|› �S )Nz  z, message:
)r   r   r   )r   Úmsgs     r   Ú__str__zHttpProcessingError.__str__%   s'   € Ü�T—\‘\ 4Ó(ˆØ—)‘)�˜L¨¨Ð.Ð.r   c                 ój   — d| j                   j                  › d| j                  › d| j                  ›d�S )NÚ<z: z
, message=Ú>)Ú	__class__Ú__name__r   r   )r   s    r   Ú__repr__zHttpProcessingError.__repr__)   s2   € Ø�4—>‘>×*Ñ*Ð+¨2¨d¯i©i¨[¸
À4Ç<Á<ÐBRÐRSÐTÐTr   )r   Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   ÚintÚstrr   r   r   r   © r   r   r   r      ss   „ ñð €DØ€GØ€Gð
 #ØØ*.ò
ð �s‰mð
ð ð	
ð
 ˜,Ñ'ð
ð 
ó
ð/˜ó /ðU˜#ô Ur   r   c                   ó@   ‡ — e Zd ZdZdZddœdedee   ddfˆ fd„Zˆ xZ	S )	ÚBadHttpMessageé�  úBad RequestN)r   r   r   r   c                ó8   •— t         ‰| �  ||¬«       |f| _        y )N)r   r   ©Úsuperr   Úargs)r   r   r   r   s      €r   r   zBadHttpMessage.__init__2   s   ø€ Ü‰Ñ °'ÐÔ:Ø�Jˆ�	r   )
r   r   r   r   r   r!   r   r   r   Ú__classcell__©r   s   @r   r$   r$   -   s5   ø„ à€DØ€GàJNò  ð °¸,Ñ1Gð ÐSW÷ ñ r   r$   c                   ó   — e Zd ZdZdZy)ÚHttpBadRequestr%   r&   N)r   r   r   r   r   r"   r   r   r.   r.   7   s   „ à€DØ�Gr   r.   c                   ó   — e Zd ZdZy)ÚPayloadEncodingErrorzBase class for payload errorsN©r   r   r   r   r"   r   r   r0   r0   =   s   „ Ú'r   r0   c                   ó   — e Zd ZdZy)ÚContentEncodingErrorzContent encoding error.Nr1   r"   r   r   r3   r3   A   s   „ Ú!r   r3   c                   ó   — e Zd ZdZy)ÚTransferEncodingErrorztransfer encoding error.Nr1   r"   r   r   r5   r5   E   s   „ Ú"r   r5   c                   ó   — e Zd ZdZy)ÚContentLengthErrorz2Not enough data for satisfy content length header.Nr1   r"   r   r   r7   r7   I   s   „ Ú<r   r7   c            	       ó4   ‡ — e Zd Z	 ddedededdfˆ fd„Zˆ xZS )ÚLineTooLongÚlineÚlimitÚactual_sizer   Nc           	      óL   •— t         ‰| �  d|› d|› d|› d�«       |||f| _        y )NzGot more than z bytes (z) when reading Ú.r(   )r   r:   r;   r<   r   s       €r   r   zLineTooLong.__init__N   s:   ø€ ô 	‰ÑØ˜U˜G 8¨K¨=¸ÈÀvÈQÐOô	
ð ˜5 +Ð.ˆ�	r   )ÚUnknownr?   )r   r   r   r!   r   r+   r,   s   @r   r9   r9   M   s0   ø„ àDMñ/Øð/Ø #ð/Ø>Að/à	÷/ñ /r   r9   c                   ó2   ‡ — e Zd Zdeeef   ddfˆ fd„Zˆ xZS )ÚInvalidHeaderÚhdrr   Nc                 ó�   •— t        |t        «      r|j                  d¬«      n|}t        ‰| �  d|›�«       || _        |f| _        y )NÚbackslashreplace)ÚerrorszInvalid HTTP header: )Ú
isinstanceÚbytesÚdecoder)   r   rB   r*   )r   rB   Úhdr_sr   s      €r   r   zInvalidHeader.__init__X   sE   ø€ Ü9CÀCÌÔ9O�—
‘
Ð"4�
Ô5ÐUXˆÜ‰ÑÐ0°°Ð8Ô9ØˆŒØ�Fˆ�	r   )r   r   r   r   rG   r!   r   r+   r,   s   @r   rA   rA   W   s$   ø„ ð˜E %¨ *Ñ-ð °$÷ ñ r   rA   c                   ó4   ‡ — e Zd Zddedee   ddfˆ fd„Zˆ xZS )ÚBadStatusLineNr:   Úerrorr   c                 ó†   •— t        |t        «      st        |«      }t        ‰| �  |xs d|›�«       |f| _        || _        y )NzBad status line )rF   r!   Úreprr)   r   r*   r:   ©r   r:   rL   r   s      €r   r   zBadStatusLine.__init__`   s@   ø€ Ü˜$¤Ô$Ü˜“:ˆDÜ‰Ñ˜Ò=Ð$4°T°HÐ"=Ô>Ø�GˆŒ	Øˆ�	r   ©r
   N)r   r   r   r!   r   r   r+   r,   s   @r   rK   rK   _   s&   ø„ ñ˜Sð ¨h°s©mð Àt÷ ñ r   rK   c                   ó8   ‡ — e Zd ZdZddedee   ddfˆ fd„Zˆ xZS )ÚBadHttpMethodz#Invalid HTTP method in status line.Nr:   rL   r   c                 ó4   •— t         ‰| �  ||xs d|›�«       y )NzBad HTTP method in status line )r)   r   rO   s      €r   r   zBadHttpMethod.__init__k   s   ø€ Ü‰Ñ˜˜uÒRÐ*IÈ$ÈÐ(RÕSr   rP   )r   r   r   r   r!   r   r   r+   r,   s   @r   rR   rR   h   s.   ø„ Ù-ñT˜Sð T¨h°s©mð TÀt÷ Tñ Tr   rR   c                   ó   — e Zd Zy)ÚInvalidURLErrorN)r   r   r   r"   r   r   rU   rU   o   s   „ Ør   rU   N)r   Útextwrapr   Útypingr   r   Útypedefsr   Ú__all__Ú	Exceptionr   r$   r.   r0   r3   r5   r7   r9   rA   rK   rR   rU   r"   r   r   Ú<module>r[      s¯   ðÙ (å ß "å "à
"€ôU˜)ô UôDÐ(ô ô�^ô ô(˜>ô (ô"Ð/ô "ô#Ð0ô #ô=Ð-ô =ô/�.ô /ô�Nô ô�Nô ôT�Mô Tô	�nõ 	r   