<reponame>zoomHKG/Alfred<filename>alfred/exceptions.py
#!/usr/bin/env python3
"""The exceptions used by alfred."""

class AlfredError(Exception):
    """General Alfred exception occurred."""

    pass


class InvalidEntityFormatError(AlfredError):
    """When an invalid formatted entity is encountered."""

    pass


class NoEntitySpecifiedError(AlfredError):
    """When no entity is specified."""

    pass


class PlatformNotReady(AlfredError):
    """Error to indicate that platform is not ready."""

    pass


class InvalidStateError(AlfredError):
    """When an invalid state is encountered."""

    pass

#!/usr/bin/env python3
"""The exceptions used by alfred."""

class AlfredError(Exception):
    """General Alfred exception occurred."""

    pass


class InvalidEntityFormatError(AlfredError):
    """When an invalid formatted entity is encountered."""

    pass


class NoEntitySpecifiedError(AlfredError):
    """When no entity is specified."""

    pass


class PlatformNotReady(AlfredError):
    """Error to indicate that platform is not ready."""

    pass


class InvalidStateError(AlfredError):
    """When an invalid state is encountered."""

    pass
#!/usr/bin/env python3 The exceptions used by alfred. General Alfred exception occurred. When an invalid formatted entity is encountered. When no entity is specified. Error to indicate that platform is not ready. When an invalid state is encountered.