gradio/client/python/gradio_client/exceptions.py
Abubakar Abid a9e1a8ac56
Make exceptions in the Client more specific (#8264)
* more specific exceptions

* format

* add changeset

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 12:06:06 -07:00

15 lines
427 B
Python

class SerializationSetupError(ValueError):
"""Raised when a serializers cannot be set up correctly."""
pass
class AuthenticationError(ValueError):
"""Raised when the client is unable to authenticate itself to a Gradio app due to invalid or missing credentials."""
pass
class AppError(ValueError):
"""Raised when the upstream Gradio app throws an error because of the value submitted by the client."""