HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/elasticsearch/__pycache__/exceptions.cpython-37.pyc
B

XP�e��
@s2UddlmZmZmZddlmZddlmZddlmZddlm	Z	ddlm
ZddlmZddlm
Z
d	d
ddd
dddddg
ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de
�ZeZeZeeeeed�Zeeeefed<d S)!�)�Any�Dict�Type)�ApiError)�ConnectionError)�ConnectionTimeout)�SerializationError)�TlsError)�TransportError)�TransportWarningrr
r�SSLErrorr�AuthorizationException�AuthenticationException�
NotFoundError�
ConflictError�BadRequestErrorc@sPeZdZeed�dd��Zeed�dd��Zeed�dd��Z	ed�dd	�Z
d
S)r)�returncCs|jjS)z7Backwards-compatible way to access ``self.meta.status``)�meta�status)�self�r�I/opt/alt/python37/lib/python3.7/site-packages/elasticsearch/exceptions.py�status_code+szApiError.status_codecCs|jS)z3Backwards-compatible way to access ``self.message``)�message)rrrr�error0szApiError.errorcCs|jS)z0Backwards-compatible way to access ``self.body``)�body)rrrr�info5sz
ApiError.infoc	Cs�d}y||jr~t|jt�r~d|jkr~t|jdt�rp|jddd}d�tdt|d�|�d�|�d�g��}nt|jd�}Wntk
r�YnXd�tdt|j	�t|j
�|g��}|jj�d	|�d
�S)N�r�
root_causerz, �reasonzresource.idz
resource.type�(�))
r�
isinstance�dict�join�filter�repr�get�LookupError�strrr�	__class__�__name__)r�causer�msgrrr�__str__:s 
"zApiError.__str__N)r+�
__module__�__qualname__�property�intrr)rrrr.rrrrr*src@seZdZdZed�dd�ZdS)�UnsupportedProductErrorzaError which is raised when the client detects
    it's not connected to a supported product.
    )rcCs|jS)N)r)rrrrr.XszUnsupportedProductError.__str__N)r+r/r0�__doc__r)r.rrrrr3Ssr3c@seZdZdZdS)rz)Exception representing a 404 status code.N)r+r/r0r4rrrrr\sc@seZdZdZdS)rz)Exception representing a 409 status code.N)r+r/r0r4rrrrr`sc@seZdZdZdS)rz)Exception representing a 400 status code.N)r+r/r0r4rrrrrdsc@seZdZdZdS)rz)Exception representing a 401 status code.N)r+r/r0r4rrrrrhsc@seZdZdZdS)r
z)Exception representing a 403 status code.N)r+r/r0r4rrrrr
lsc@seZdZdZdS)�ElasticsearchWarningzuWarning that is raised when a deprecated option
    or incorrect usage is flagged via the 'Warning' HTTP header.
    N)r+r/r0r4rrrrr5psr5)i�i�i�i�i��HTTP_EXCEPTIONSN)�typingrrrZelastic_transportrZ	_ApiErrorrrrr	rr
r�__all__r3rrrrr
r5ZElasticsearchDeprecationWarning�RequestErrorr6r2�__annotations__rrrr�<module>sB)