data-collection-backend / utils /exceptions.py
sampro69's picture
deploy backend on Gradio SDK
3f72838
Raw
History Blame Contribute Delete
227 Bytes
"""Application-level exceptions."""
class AppError(Exception):
def __init__(self, detail: str, status_code: int = 400):
self.detail = detail
self.status_code = status_code
super().__init__(detail)