
    g                     ^    d dl mZ d dlmZ  G d de      Z G d de      Z G d de      Zy	)
    )	RerunDatarepr_c                       e Zd ZdZy)ScriptControlExceptionz Base exception for ScriptRunner.N__name__
__module____qualname____doc__     d/var/www/openai/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner_utils/exceptions.pyr   r      s    *r   r   c                       e Zd ZdZy)StopExceptionz1Silently stop the execution of the user's script.Nr   r   r   r   r   r      s    ;r   r   c                   (    e Zd ZdZdefdZdefdZy)RerunExceptionz*Silently stop and rerun the user's script.
rerun_datac                     || _         y)zConstruct a RerunException

        Parameters
        ----------
        rerun_data : RerunData
            The RerunData that should be used to rerun the script
        N)r   )selfr   s     r   __init__zRerunException.__init__%   s     %r   returnc                     t        |       S )Nr   )r   s    r   __repr__zRerunException.__repr__/   s    T{r   N)r	   r
   r   r   r   r   strr   r   r   r   r   r   "   s    4%9 %# r   r   N)4streamlit.runtime.scriptrunner_utils.script_requestsr   streamlit.utilr   BaseExceptionr   r   r   r   r   r   <module>r      s4    K  	] 		* 	+ r   