mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
38 lines
860 B
Python
38 lines
860 B
Python
class NoMediaException(Exception):
|
|
'''
|
|
Raised when a source returns no media to be indexed. Could be an invalid
|
|
playlist name or similar, or the upstream source returned an error.
|
|
'''
|
|
pass
|
|
|
|
|
|
class NoFormatException(Exception):
|
|
'''
|
|
Raised when a media item is attempted to be downloaded but it has no valid
|
|
format combination.
|
|
'''
|
|
pass
|
|
|
|
|
|
class NoMetadataException(Exception):
|
|
'''
|
|
Raised when a media item is attempted to be downloaded but it has no valid
|
|
metadata.
|
|
'''
|
|
pass
|
|
|
|
|
|
class DownloadFailedException(Exception):
|
|
'''
|
|
Raised when a downloaded media file is expected to be present, but doesn't
|
|
exist.
|
|
'''
|
|
pass
|
|
|
|
|
|
class DatabaseConnectionError(Exception):
|
|
'''
|
|
Raised when parsing or initially connecting to a database.
|
|
'''
|
|
pass
|