a
    yµÿf0  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )Úemojisc                       s"   e Zd ZdZd‡ fdd„	Z‡  ZS )ÚHUBModelErroraí  
    Custom exception class for handling errors related to model fetching in Ultralytics YOLO.

    This exception is raised when a requested model is not found or cannot be retrieved.
    The message is also processed to include emojis for better user experience.

    Attributes:
        message (str): The error message displayed when the exception is raised.

    Note:
        The message is automatically processed through the 'emojis' function from the 'ultralytics.utils' package.
    ú6Model not found. Please check model URL and try again.c                    s   t ƒ  t|ƒ¡ dS )z2Create an exception for when a model is not found.N)ÚsuperÚ__init__r   )ÚselfÚmessage©Ú	__class__© úT/var/www/html/django/DPS/env/lib/python3.9/site-packages/ultralytics/utils/errors.pyr      s    zHUBModelError.__init__)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r	   r   r      s   r   N)Zultralytics.utilsr   Ú	Exceptionr   r   r   r   r   Ú<module>   s   