Skip to content

Commit aede1a2

Browse files
authored
Create exceptions.py
1 parent fb89401 commit aede1a2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class YouTubeSearchError(Exception):
2+
"""Base exception for youtube-search-python errors."""
3+
pass
4+
5+
6+
class YouTubeRequestError(YouTubeSearchError):
7+
"""Exception raised when a request to YouTube fails."""
8+
pass
9+
10+
11+
class YouTubeParseError(YouTubeSearchError):
12+
"""Exception raised when parsing YouTube response fails."""
13+
pass

0 commit comments

Comments
 (0)