yt-dlp-bot/api/core/exceptions.py
Taras Terletskyi 773eddffcd Initial
2022-03-09 23:17:37 +02:00

13 lines
302 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