https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /lib/python3/dist-packages/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/botocore/__pycache__/errorfactory.cpython-312.pyc
�

P��e���D�ddlmZddlmZGd�d�ZGd�d�Zy)�)�ClientError)�get_service_module_namec�"�eZdZeZd�Zd�Zd�Zy)�BaseClientExceptionsc��||_y)aBase class for exceptions object on a client

        :type code_to_exception: dict
        :param code_to_exception: Mapping of error codes (strings) to exception
            class that should be raised when encountering a particular
            error code.
        N)�_code_to_exception)�self�code_to_exceptions  �7/usr/lib/python3/dist-packages/botocore/errorfactory.py�__init__zBaseClientExceptions.__init__s��#4���c�N�|jj||j�S)aNRetrieves the error class based on the error code

        This is helpful for identifying the exception class needing to be
        caught based on the ClientError.parsed_reponse['Error']['Code'] value

        :type error_code: string
        :param error_code: The error code associated to a ClientError exception

        :rtype: ClientError or a subclass of ClientError
        :returns: The appropriate modeled exception class for that error
            code. If the error code does not match any of the known
            modeled exceptions then return a generic ClientError.
        )r�getr)r	�
error_codes  r�	from_codezBaseClientExceptions.from_codes#���&�&�*�*�:�t�7G�7G�H�Hr
c	��|jj�D�cgc]}|j��}}t|�d|�ddj	|�����cc}w)Nz object has no attribute z. Valid exceptions are: z, )r�values�__name__�AttributeError�join)r	�name�
exception_cls�exception_cls_namess    r�__getattr__z BaseClientExceptions.__getattr__.sr��"&�!8�!8�!?�!?�!A�
��
�"�"�
��
���v�.�t�f�5&�&*�i�i�0C�&D�%E�
G�
�	
��	
s�AN)r�
__module__�__qualname__rrrr�r
rrrs���K�4�I� 
r
rc��eZdZd�Zd�Zd�Zy)�ClientExceptionsFactoryc��i|_y)N)�_client_exceptions_cache)r	s rrz ClientExceptionsFactory.__init__:s
��(*��%r
c��|j}||jvr |j|�}||j|<|j|S)a�Creates a ClientExceptions object for the particular service client

        :type service_model: botocore.model.ServiceModel
        :param service_model: The service model for the client

        :rtype: object that subclasses from BaseClientExceptions
        :returns: The exceptions object of a client that can be used
            to grab the various different modeled exceptions.
        )�service_namer!�_create_client_exceptions)r	�
service_modelr#�client_exceptionss    r�create_client_exceptionsz0ClientExceptionsFactory.create_client_exceptions=sO��%�1�1���t�<�<�<� $� >� >�}� M��:K�D�)�)�,�7��,�,�\�:�:r
c��i}i}|jD]H}t|j�}t|tfi�}|||<t|j
�}|||<�Jtt
|�dz�}t|tf|�}	|	|�S)N�
Exceptions)�error_shapes�strr�typerrrr)
r	r%�	cls_propsr
�error_shape�exception_namer�code�cls_name�client_exceptions_clss
          rr$z1ClientExceptionsFactory._create_client_exceptionsMs����	���(�5�5�	4�K� ��!1�!1�2�N� ��+���D�M�(5�I�n�%��{�-�-�.�D�&3��d�#�	4��.�}�=��L�M�� $��+�-�y�!
��%�%6�7�7r
N)rrrrr'r$rr
rrr9s��+�;� 
8r
rN)�botocore.exceptionsr�botocore.utilsrrrrr
r�<module>r5s"��,�2�%
�%
�P!8�!8r

https://t.me/RX1948 - 2025