o
    c²“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
   úB/home/ubuntu/.local/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   )Ú_TuneNoNextExecutorEventErrorzÚError 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    