
    -j                        d dl mZ d dlZej        rd dlmZ  G d de          Z G d de          Z	 G d d	e          Z
dS )
    )annotationsN)	Evolutionc                  $     e Zd ZdZd fdZ xZS )RagasExceptionz)
    Base exception class for ragas.
    messagestrc                X    || _         t                                          |           d S )N)r   super__init__)selfr   	__class__s     Z/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/site-packages/ragas/exceptions.pyr   zRagasException.__init__   s(    !!!!!    )r   r   __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r   	   sG         " " " " " " " " " "r   r   c                  $     e Zd ZdZd fdZ xZS )MaxRetriesExceededzJ
    Exception raised when the maximum number of retries is exceeded.
    	evolutionr   c                x    || _         d|j        j         d}t                                          |           d S )Nz#Max retries exceeded for evolution .)r   r   r   r
   r   )r   r   msgr   s      r   r   zMaxRetriesExceeded.__init__   s>    "SI4G4PSSSr   )r   r   r   r   s   @r   r   r      sG                  r   r   c                  "     e Zd ZdZ fdZ xZS )ExceptionInRunnerzG
    Exception raised when an exception is raised in the executor.
    c                N    d}t                                          |           d S )NzThe runner thread which was running the jobs raised an exeception. Read the traceback above to debug it. You can also pass `raise_exceptions=False` incase you want to show only a warning message instead.)r
   r   )r   r   r   s     r   r   zExceptionInRunner.__init__#   s)     \r   r   r   s   @r   r   r      sB                 r   r   )
__future__r   typingtTYPE_CHECKINGragas.testset.evolutionsr   	Exceptionr   r   r    r   r   <module>r'      s    " " " " " "    ? 3222222" " " " "Y " " "                r   