
    Pi5                     v     G d  de           Z G d de           Z G d de           Z G 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__     l/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/gradio_client/exceptions.pyr   r      s        ??Dr
   r   c                       e Zd ZdZdS )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      s        xxDr
   r   c                       e Zd ZdZdS )ValidationErrorz[Raised when the data that is passed into the Gradio app fails developer-defined validation.Nr   r	   r
   r   r   r      s        eeDr
   r   c                   J     e Zd ZdZ	 	 	 	 	 ddededz  d	ed
edef
 fdZ x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                     || _         || _        || _        || _        || _        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__s         r   r   zAppError.__init__   sI      
 .&&&&&r
   )r   r   Tr   T)	r   r   r   r   strfloatboolr   __classcell__)r   s   @r   r   r      s        kk '!# $' '' $,' 	'
 ' ' ' ' ' ' ' ' ' ' 'r
   r   N)
ValueErrorr   r   r   r   r	   r
   r   <module>r$      s   	 	 	 	 	j 	 	 		 	 	 	 	* 	 	 		 	 	 	 	j 	 	 	' ' ' ' 'z ' ' ' ' 'r
   