mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-05 03:03:44 +08:00
14 lines
302 B
Python
14 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
|