o
    ßñh  ã                   @   sL   d dl mZ d dlmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZd	S )
é    )Ú	RerunData©Úrepr_c                   @   ó   e Zd ZdZdS )ÚScriptControlExceptionz Base exception for ScriptRunner.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úc/var/www/vscode/kcb/lib/python3.10/site-packages/streamlit/runtime/scriptrunner_utils/exceptions.pyr      ó    r   c                   @   r   )ÚStopExceptionz1Silently stop the execution of the user's script.Nr   r   r   r   r   r      r   r   c                   @   s,   e Zd ZdZdefdd„Zdefdd„ZdS )	ÚRerunExceptionz*Silently stop and rerun the user's script.Ú
rerun_datac                 C   s
   || _ dS )z¬Construct a RerunException.

        Parameters
        ----------
        rerun_data : RerunData
            The RerunData that should be used to rerun the script
        N)r   )Úselfr   r   r   r   Ú__init__%   s   
zRerunException.__init__Úreturnc                 C   s   t | ƒS )Nr   )r   r   r   r   Ú__repr__/   s   zRerunException.__repr__N)r   r	   r
   r   r   r   Ústrr   r   r   r   r   r   "   s    
r   N)Ú4streamlit.runtime.scriptrunner_utils.script_requestsr   Ústreamlit.utilr   ÚBaseExceptionr   r   r   r   r   r   r   Ú<module>   s
   