← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/gradio_client/__pycache__/exceptions.cpython-312.pyc
26 lines
�
c�bj5 � �\ � G d � de � Z G d� de � Z G d� de � Z G d� de � Zy) c � � e Zd ZdZy)�SerializationSetupErrorz5Raised when a serializers cannot be set up correctly.N��__name__�
__module__�__qualname__�__doc__� � �o/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/gradio_client/exceptions.pyr r s � �?�r
r c � � e Zd ZdZy)�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 � � e Zd ZdZy)�ValidationErrorz[Raised when the data that is passed into the Gradio app fails developer-defined validation.Nr r r
r r r
s � �e�r
r c �J � � e Zd ZdZ d dededz dededef
� fd�
Z� xZS )
�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 zAppError.__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
r �<module>r# s5 �� �j� � �*� � �j� �'�z� 'r