mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
* Suffix names for custom exceptions with "Error" * Introduce exceptions for when the coressponding encoder isn't found
21 lines
551 B
Python
21 lines
551 B
Python
class EncoderNotFoundError(Exception):
|
|
__module__ = Exception.__module__
|
|
|
|
def __init__(self, message=None):
|
|
super(EncoderNotFoundError, self).__init__(message)
|
|
|
|
|
|
class FFmpegNotFoundError(EncoderNotFoundError):
|
|
__module__ = Exception.__module__
|
|
|
|
def __init__(self, message=None):
|
|
super(FFmpegNotFoundError, self).__init__(message)
|
|
|
|
|
|
class AvconvNotFoundError(EncoderNotFoundError):
|
|
__module__ = Exception.__module__
|
|
|
|
def __init__(self, message=None):
|
|
super(AvconvNotFoundError, self).__init__(message)
|
|
|