o
    ØÙ·i5  ã                   @   sD   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 )	c                   @   ó   e Zd ZdZdS )ÚSerializationSetupErrorz5Raised when a serializers cannot be set up correctly.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úL/home/ubuntu/.local/lib/python3.10/site-packages/gradio_client/exceptions.pyr      ó    r   c                   @   r   )ÚAuthenticationErrorznRaised when the client is unable to authenticate itself to a Gradio app due to invalid or missing credentials.Nr   r   r   r   r	   r      r
   r   c                   @   r   )ÚValidationErrorz[Raised when the data that is passed into the Gradio app fails developer-defined validation.Nr   r   r   r   r	   r      r
   r   c                       sF   e Zd ZdZ					ddededB d	ed
edef
‡ fdd„Z‡  ZS )ÚAppErrorzaRaised when the upstream Gradio app throws an error because of the value submitted by the client.úError raised.é
   TÚErrorÚmessageÚdurationNÚvisibleÚtitleÚprint_exceptionc                    s0   || _ || _|| _|| _|| _tƒ  | j¡ dS )a?  
        Parameters:
            message: The error message to be displayed to the user. Can be HTML, which will be rendered in the modal.
            duration: The duration in seconds to display the error message. If None or 0, the error message will be displayed until the user closes it.
            visible: Whether the error message should be displayed in the UI.
            title: The title to be displayed to the user at the top of the error modal.
            print_exception: Whether to print traceback of the error to the console when the error is raised.
        N)r   r   r   r   r   ÚsuperÚ__init__)Úselfr   r   r   r   r   ©Ú	__class__r   r	   r      s   zAppError.__init__)r   r   Tr   T)	r   r   r   r   ÚstrÚfloatÚboolr   Ú__classcell__r   r   r   r	   r      s$    úþýüûúr   N)Ú
ValueErrorr   r   r   r   r   r   r   r	   Ú<module>   s    