o
    $i[                     @   st   d dl mZ e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 )    )	PublicAPIc                   @      e Zd ZdZdS )	TuneErrorz'General error class raised by ray.tune.N__name__
__module____qualname____doc__ r
   r
   K/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/ray/tune/error.pyr      s    r   c                   @   r   )_AbortTrialExecutionz3Error that indicates a trial should not be retried.Nr   r
   r
   r
   r   r          r   c                   @   s&   e Zd ZdZdefddZdd ZdS )_SubCategoryTuneErrorzwThe more specific TuneError that happens for a certain Tune
    subroutine. For example starting/stopping a trial.
    traceback_strc                 C   s
   || _ d S Nr   )selfr   r
   r
   r   __init__   s   
z_SubCategoryTuneError.__init__c                 C   s   | j S r   r   )r   r
   r
   r   __str__   s   z_SubCategoryTuneError.__str__N)r   r   r   r	   strr   r   r
   r
   r
   r   r      s    r   c                   @   r   )_TuneStopTrialErrorz.Error that happens when stopping a tune trial.Nr   r
   r
   r
   r   r      r   r   c                   @   r   )_TuneStartTrialErrorz.Error that happens when starting a tune trial.Nr   r
   r
   r
   r   r   #   r   r   c                   @   r   )_TuneNoNextExecutorEventErrorzError that happens when waiting to get the next event to
    handle from RayTrialExecutor.

    Note: RayTaskError will be raised by itself and will not be using
    this category. This category is for everything else.Nr   r
   r
   r
   r   r   )   s    r   N)	ray.util.annotationsr   	Exceptionr   r   r   r   r   r   r
   r
   r
   r   <module>   s    