o
    1j                     @   sl   g d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZdS ))FailedErrorCheckFailedErrorConvertFailedErrorSplitFailedErrorAnalyseFailedErrorr   DatasetFileNotFoundErrorc                       s*   e Zd ZdZd fdd	Zdd Z  ZS )r   zbase error classNc                    s$   |d u r
|  ||}t | d S )N)_construct_messagesuper__init__)selferr_infosolutionmessage	__class__ e/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddlex/utils/errors/dataset_checker.pyr	      s   zFailedError.__init__c                 C   s6   |d u rdS | j  d| }|d ur|d| 7 }|S )N z/ failed. We encountered the following error:
  z/
Please try to resolve the issue as follows:
  )mode)r
   r   r   msgr   r   r   r   #   s   zFailedError._construct_message)NNN)__name__
__module____qualname____doc__r	   r   __classcell__r   r   r   r   r      s    r   c                   @      e Zd ZdZdZdS )r   zcheck dataset errorzCheck datasetNr   r   r   r   r   r   r   r   r   r   /       r   c                   @   r   )r   zconvert dataset errorzConvert datasetNr   r   r   r   r   r   5   r   r   c                   @   r   )r   zsplit dataset errorzSplit datasetNr   r   r   r   r   r   ;   r   r   c                   @   r   )r   zanalyse dataset errorzAnalyse datasetNr   r   r   r   r   r   A   r   r   c                       s"   e Zd ZdZd fdd	Z  ZS )r   zdataset file not found errorNc                    s.   |d u r|d ur| d}t  ||| d S )Nz does not exist.)r   r	   )r
   	file_pathr   r   r   r   r   r   r	   J   s   
z!DatasetFileNotFoundError.__init__)NNNN)r   r   r   r   r	   r   r   r   r   r   r   G   s    r   N)__all__	Exceptionr   r   r   r   r   r   r   r   r   r   <module>   s   