관리-도구
편집 파일: client_exceptions.cpython-311.pyc
� �܋f�$ � �h � d Z ddlZddlZddlmZmZmZmZmZ ddl m Z ddlmZ ddl Z e j Zn# e$ r dxZ ZY nw xY wer ddlmZmZmZmZ ndxZxZZdZ G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� dee� � Z G d� de� � Z G d� de � � Z! G d� de � � Z" G d� d e� � Z# G d!� d"e#� � Z$ G d#� d$e#ej% � � Z& G d%� d&e#� � Z' G d'� d(e� � Z( G d)� d*ee)� � Z* G d+� d,e � � Z+e �#e j, fZ-e+e j, fZ.e j/ fZ0e+e j/ fZ1n e2� � Z-e+e)fZ. e2� � Z0e+fZ1 G d-� d.ge1�R � Z3 G d/� d0ge.�R � Z4dS )1zHTTP related errors.� N)� TYPE_CHECKING�Any�Optional�Tuple�Union� )�RawResponseMessage)�LooseHeaders)�ClientResponse� ConnectionKey�Fingerprint�RequestInfo)�ClientError�ClientConnectionError� ClientOSError�ClientConnectorError�ClientProxyConnectionError�ClientSSLError�ClientConnectorSSLError�ClientConnectorCertificateError�ServerConnectionError�ServerTimeoutError�ServerDisconnectedError�ServerFingerprintMismatch�ClientResponseError�ClientHttpProxyError�WSServerHandshakeError�ContentTypeError�ClientPayloadError� InvalidURLc � � e Zd ZdZdS )r z(Base class for client connection errors.N��__name__� __module__�__qualname__�__doc__� � �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/client_exceptions.pyr r - s � � � � � �2�2�2�2r( r c �� � e Zd ZdZddddd�dedeedf dee d ee d e dee ddfd �Zde fd�Zde fd�Z edefd�� � Zej deddfd�� � ZdS )r a Base class for exceptions that occur after getting a response. request_info: An instance of RequestInfo. history: A sequence of responses, if redirects occurred. status: HTTP status code. message: Error message. headers: Response headers. N� )�code�status�message�headers�request_info�history.r, r- r. r/ �returnc �� � || _ |�-|�t d� � �t j dt d�� � |�|| _ n|�|| _ nd| _ || _ || _ || _ ||f| _ d S )NzSBoth code and status arguments are provided; code is deprecated, use status insteadz/code argument is deprecated, use status instead� �� stacklevelr ) r0 � ValueError�warnings�warn�DeprecationWarningr- r. r/ r1 �args)�selfr0 r1 r, r- r. r/ s r) �__init__zClientResponseError.__init__; s� � � )������!� �=�� � � �M�A�"�� � � � � �� �D�K�K� � ��D�K�K��D�K����������!�7�+�� � � r( c �X � d� | j | j | j j � � S )Nz{}, message={!r}, url={!r})�formatr- r. r0 �real_url�r<