CoolFace
Apppublic

recaptcha07/Ml_Pipeline

sourceHugging Faceupdated 8mo agoView on Hugging Face
3likes
exception.cpython-312.pyc8 linesDownload Raw Back to __pycache__
1�

2o?hw���ddlZddlmZdefd�ZGd�de�Zedk(r	ddzZyy#e$r Zejd	�eee��dZ[wwxYw)3�N)�logging�error_detailc��|j�\}}}|jjj}dj	||j4t
|��}|S)NzNError occured in python script name [{0}] line number [{1}] error message[{2}])�exc_info�tb_frame�f_code�co_filename�format�	tb_lineno�str)�errorr�_�exc_tb�	file_name�
error_messages      �>C:\Users\prern\Desktop\PrOjEcTs\MLProject_AWS\src\exception.py�error_message_detailrsT���'�'�)�K�A�a�����&�&�2�2�I�d�k�k�
�f���s�5�z��M���c�*��eZdZdef�fd�Zd�Z�xZS)�CustomExceptionrc�H��t�|�|�t||��|_y)N)r)�super�__init__rr)�selfrr�	__class__s   �rrzCustomException.__init__s���
����'�1�-�l�[��rc��|jS)N)r)rs r�__str__zCustomException.__str__s���!�!�!r)�__name__�5__module__�__qualname__�sysrr�
__classcell__)rs@rrrs���\�#�\�"rr�__main__�zDivide by Zero)6r!�7src.loggerrr�	Exceptionrr�a�e�info�rr�<module>r+sn��8���S��"�i�"��z��%�
�a�C�����%�����%�&��a��$�$��%�s�)�A�A	�	A