yt-dlp-bot/app_api/api/core/exceptions.py
2023-02-02 19:31:07 +02:00

11 lines
276 B
Python

from fastapi import HTTPException
from starlette import status
class TaskNotFoundHTTPError(HTTPException):
def __init__(self) -> None:
super().__init__(status_code=status.HTTP_404_NOT_FOUND, detail='Task not found')
class TaskServiceError(Exception):
pass