How to use the catt.error.CattError function in catt

To help you get started, we’ve selected a few catt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skorokithakis / catt / catt / error.py View on Github external
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. """
github skorokithakis / catt / catt / error.py View on Github external
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
github skorokithakis / catt / catt / error.py View on Github external
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
github skorokithakis / catt / catt / error.py View on Github external
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
github skorokithakis / catt / catt / error.py View on Github external
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
github skorokithakis / catt / catt / error.py View on Github external
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