Exceptions Documentation¶
app.exceptions.exception
¶
InvalidYoutubePlaylistLink
¶
Bases: Exception
Exception raised when playlist link is not valid.
This exception is raised when the provided YouTube playlist link is incorrect, inaccessible, or does not follow the expected format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message | str | Explanation of the error. Defaults to None. | None |
Raises:
Type | Description |
---|---|
InvalidYoutubePlaylistLink | When the playlist URL is not valid. |
Example
raise InvalidYoutubePlaylistLink("The provided URL is not a valid YouTube playlist link")
Source code in app/exceptions/exception.py
__init__(message=None)
¶
Initialize the InvalidYoutubePlaylistLink exception.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message | str | Custom error message explaining why the playlist link is invalid. Defaults to None. | None |