https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/__pycache__/errorhandler.cpython-310.pyc
o

.&�a��@sVddlZe�e�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�Z	dS)
�Ncs eZdZdZ�fdd�Z�ZS)�BaseOperationErrorziA {error_type} error ({error_code}) occurred when calling the {operation_name} operation: {error_message}csF|jj||||d�}tt|��|�||_||_||_||_||_	dS)N)�
error_code�
error_message�
error_type�operation_name)
�MSG_TEMPLATE�format�superr�__init__rrrr�http_status_code)�selfrrrrr�msg��	__class__��5/usr/lib/python3/dist-packages/awscli/errorhandler.pyr
s�
zBaseOperationError.__init__)�__name__�
__module__�__qualname__rr
�
__classcell__rrrrrsrc@�eZdZdS)�ClientErrorN�rrrrrrrr$�rc@r)�ServerErrorNrrrrrr(rrc@s eZdZdZdd�Zdd�ZdS)�ErrorHandlera�
    This class is responsible for handling any HTTP errors that occur
    when a service operation is called.  It is registered for the
    ``after-call`` event and will have the opportunity to inspect
    all operation calls.  If the HTTP response contains an error
    ``status_code`` an appropriate error message will be printed and
    the handler will short-circuit all further processing by exiting
    with an appropriate error code.
    c	Ksvt�d|j�d}d}|jdkrd}t}n|jdks|jdkr#d}t}|dur9|�|�\}}|||||j|jd��dS)NzHTTP Response Code: %di��serveri�i-�client)rrrrr)�LOG�debug�status_coderr�_get_error_code_and_message�name)	r�
http_response�parsed�model�kwargsr�error_class�code�messagerrr�__call__7s"
��zErrorHandler.__call__cCs8d}d}d|vr|d}|�d|�|�d|�fS||fS)N�Unknown�Error�Code�Message)�get)r�responser(r)�errorrrrr!Hsz(ErrorHandler._get_error_code_and_messageN)rrr�__doc__r*r!rrrrr,s
r)
�logging�	getLoggerrr�	Exceptionrrr�objectrrrrr�<module>s


https://t.me/RX1948 - 2025