o
    Z¾±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   úp/var/www/html/Persson_Maskin/env/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                   @   s0   e Zd ZdZdeddfdd„Zdefdd„ZdS )	ÚRerunExceptionz*Silently stop and rerun the user's script.Ú
rerun_dataÚreturnNc                 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__c                 C   s   t | ƒS )Nr   )r   r   r   r   Ú__repr__/   s   zRerunException.__repr__)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
   