
    ;3h                     F     G d  de       Z G d de       Z G d de       Zy)c                       e Zd ZdZy)SerializationSetupErrorz5Raised when a serializers cannot be set up correctly.N__name__
__module____qualname____doc__     X/var/www/html/audio-gradio/venv/lib/python3.12/site-packages/gradio_client/exceptions.pyr   r      s    ?r
   r   c                       e Zd ZdZy)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r
   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.messagedurationNvisibletitleprint_exceptionc                 ~    || _         || _        || _        || _        || _        t
        |   | j                         y)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__   s:      
 .&r
   )zError raised.
   TErrorT)	r   r   r   r   strfloatboolr   __classcell__)r   s   @r   r   r      sU    k '!# $'' $,' 	'
 ' ' 'r
   r   N)
ValueErrorr   r   r   r	   r
   r   <module>r!      s)   	j 		* 	'z 'r
   