yt-dlp-bot/api/core/exceptions.py

14 lines
302 B
Python
Raw Normal View History

2022-02-04 06:21:27 +08:00
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