
    9i                         / S Qr  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      rg))FailedErrorCheckFailedErrorConvertFailedErrorSplitFailedErrorAnalyseFailedErrorr   DatasetFileNotFoundErrorc                   6   ^  \ rS rSrSrSU 4S jjrS rSrU =r$ )r      zbase error classc                 L   > Uc  U R                  X5      n[        TU ]	  U5        g )N)_construct_messagesuper__init__)selferr_infosolutionmessage	__class__s       d/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/utils/errors/dataset_checker.pyr   FailedError.__init__   s%    ?--hAG!    c                 F    Uc  gU R                    SU 3nUb  USU 3-  nU$ )N z/ failed. We encountered the following error:
  z/
Please try to resolve the issue as follows:
  )mode)r   r   r   msgs       r   r   FailedError._construct_message#   sD     99+MhZX  #J8*UUJr    )NNN)	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r   r      s    "
	 	r   r   c                       \ rS rSrSrSrSrg)r   /   zcheck dataset errorzCheck datasetr   Nr   r   r   r   r    r   r!   r   r   r   r   r   /   
    Dr   r   c                       \ rS rSrSrSrSrg)r   5   zconvert dataset errorzConvert datasetr   Nr&   r   r   r   r   r   5   
    Dr   r   c                       \ rS rSrSrSrSrg)r   ;   zsplit dataset errorzSplit datasetr   Nr&   r   r   r   r   r   ;   r'   r   r   c                       \ rS rSrSrSrSrg)r   A   zanalyse dataset errorzAnalyse datasetr   Nr&   r   r   r   r   r   A   r*   r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )r   G   zdataset file not found errorc                 <   > Uc  Ub  U S3n[         TU ]  X#U5        g )Nz does not exist.)r   r   )r   	file_pathr   r   r   r   s        r   r   !DatasetFileNotFoundError.__init__J   s+    $'[(89W5r   r   )NNNN)r   r   r   r   r    r   r!   r"   r#   s   @r   r   r   G   s    &6 6r   r   N)__all__	Exceptionr   r   r   r   r   r   r   r   r   <module>r6      sU    ) ({  {  6/ 6r   