Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class CattError(Exception):
""" Base exception for catt. """
pass
class CattUserError(CattError):
"""
Messages from exceptions that inherit from this class,
are transformed into error messages to the cli user.
"""
pass
class StateFileError(CattError):
""" When a requested state file contains invalid data or nothing. """
pass
class ListenerError(CattError):
""" When invalid data is passed to a listener class initializer. """
class CattUserError(CattError):
"""
Messages from exceptions that inherit from this class,
are transformed into error messages to the cli user.
"""
pass
class StateFileError(CattError):
""" When a requested state file contains invalid data or nothing. """
pass
class ListenerError(CattError):
""" When invalid data is passed to a listener class initializer. """
pass
class AppSelectionError(CattError):
""" When invalid data is passed to the app selection mechanism. """
pass
class PlaylistError(CattError):
""" When playlist specific operations are attempted with non-playlist info. """
pass
class CattError(Exception):
""" Base exception for catt. """
pass
class CattUserError(CattError):
"""
Messages from exceptions that inherit from this class,
are transformed into error messages to the cli user.
"""
pass
class StateFileError(CattError):
""" When a requested state file contains invalid data or nothing. """
pass
class ListenerError(CattError):
""" When invalid data is passed to a listener class initializer. """
pass
class AppSelectionError(CattError):
""" When invalid data is passed to the app selection mechanism. """
pass
pass
class AppSelectionError(CattError):
""" When invalid data is passed to the app selection mechanism. """
pass
class PlaylistError(CattError):
""" When playlist specific operations are attempted with non-playlist info. """
pass
class APIError(CattError):
# The scope of this exception is probably going to be a bit broad.
# We can split it into more exceptions once the api is more mature.
pass
class SubtitlesError(CattUserError):
""" When a specified subtitles file cannot be found or its encoding cannot be determined. """
pass
class CliError(CattUserError):
""" When the cli user passes invalid commands/options/arguments to catt. """
pass
pass
class ListenerError(CattError):
""" When invalid data is passed to a listener class initializer. """
pass
class AppSelectionError(CattError):
""" When invalid data is passed to the app selection mechanism. """
pass
class PlaylistError(CattError):
""" When playlist specific operations are attempted with non-playlist info. """
pass
class APIError(CattError):
# The scope of this exception is probably going to be a bit broad.
# We can split it into more exceptions once the api is more mature.
pass
class SubtitlesError(CattUserError):
""" When a specified subtitles file cannot be found or its encoding cannot be determined. """
pass
pass
class StateFileError(CattError):
""" When a requested state file contains invalid data or nothing. """
pass
class ListenerError(CattError):
""" When invalid data is passed to a listener class initializer. """
pass
class AppSelectionError(CattError):
""" When invalid data is passed to the app selection mechanism. """
pass
class PlaylistError(CattError):
""" When playlist specific operations are attempted with non-playlist info. """
pass
class APIError(CattError):
# The scope of this exception is probably going to be a bit broad.
# We can split it into more exceptions once the api is more mature.
pass