| Total Complexity | 0 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from typing import Tuple |
||
|
|
|||
| 2 | |||
| 3 | __all__: Tuple[str, ...] = ( |
||
| 4 | "InvalidQuery", |
||
| 5 | "InvalidPath", |
||
| 6 | "SearchSongError", |
||
| 7 | "ParserError", |
||
| 8 | "ParseLinkError", |
||
| 9 | "DownloaderRequestError", |
||
| 10 | "DownloaderWriteError" |
||
| 11 | ) |
||
| 12 | |||
| 13 | class InvalidQuery(Exception): |
||
| 14 | """Handle 'invalid query' error""" |
||
| 15 | |||
| 16 | |||
| 17 | class InvalidPath(Exception): |
||
| 18 | """Handle 'invalid path' error""" |
||
| 19 | |||
| 20 | |||
| 21 | class SearchSongError(Exception): |
||
| 22 | """Handle searcher error""" |
||
| 23 | |||
| 24 | |||
| 25 | class ParserError(Exception): |
||
| 26 | """Handle parser error""" |
||
| 27 | |||
| 28 | |||
| 29 | class ParseLinkError(Exception): |
||
| 30 | """Handle link parser error""" |
||
| 31 | |||
| 32 | |||
| 33 | class DownloaderRequestError(Exception): |
||
| 34 | """Handle download request error""" |
||
| 35 | |||
| 36 | |||
| 37 | class DownloaderWriteError(Exception): |
||
| 38 | """Handle file writing errors""" |
||
| 39 |