mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-21 03:37:15 +00:00

* Add HassOS OTA support on Hass.io * Update dt.py * Update updater.py * add rauc dbus / initial dbus signal handling * Update gdbus.py * Update hassos.py * Update const.py * Update hassos.py * Update exceptions.py * Update hassos.py * Update rauc.py * Update rauc.py * Update rauc.py * Update hassos.py * Update hassos.py * Update hassos.py * Update hassos.py * Update hassos.py * Update hassos.py * Update hassos.py * Update __init__.py * Update hassos.py * Update hassos.py * Update updater.py * Update updater.py * Update exceptions.py * Update exceptions.py * Update hassos.py * Update dt.py * fix lint * Fix update * fix property * tmp disabled * fix path * fix rauc * info * More details * cleanup signal hadnling * fix * Fix lint
95 lines
1.5 KiB
Python
95 lines
1.5 KiB
Python
"""Core Exceptions."""
|
|
|
|
|
|
class HassioError(Exception):
|
|
"""Root exception."""
|
|
pass
|
|
|
|
|
|
class HassioNotSupportedError(HassioError):
|
|
"""Function is not supported."""
|
|
pass
|
|
|
|
|
|
# HassOS
|
|
|
|
class HassOSError(HassioError):
|
|
"""HassOS exception."""
|
|
pass
|
|
|
|
|
|
class HassOSUpdateError(HassOSError):
|
|
"""Error on update of a HassOS."""
|
|
pass
|
|
|
|
|
|
class HassOSNotSupportedError(HassioNotSupportedError):
|
|
"""Function not supported by HassOS."""
|
|
pass
|
|
|
|
|
|
# Updater
|
|
|
|
class HassioUpdaterError(HassioError):
|
|
"""Error on Updater."""
|
|
pass
|
|
|
|
|
|
# Host
|
|
|
|
class HostError(HassioError):
|
|
"""Internal Host error."""
|
|
pass
|
|
|
|
|
|
class HostNotSupportedError(HassioNotSupportedError):
|
|
"""Host function is not supprted."""
|
|
pass
|
|
|
|
|
|
class HostServiceError(HostError):
|
|
"""Host service functions fails."""
|
|
pass
|
|
|
|
|
|
class HostAppArmorError(HostError):
|
|
"""Host apparmor functions fails."""
|
|
|
|
|
|
# utils/gdbus
|
|
|
|
class DBusError(HassioError):
|
|
"""DBus generic error."""
|
|
pass
|
|
|
|
|
|
class DBusNotConnectedError(HostNotSupportedError):
|
|
"""DBus is not connected and call a method."""
|
|
|
|
|
|
class DBusFatalError(DBusError):
|
|
"""DBus call going wrong."""
|
|
pass
|
|
|
|
|
|
class DBusParseError(DBusError):
|
|
"""DBus parse error."""
|
|
pass
|
|
|
|
|
|
# util/apparmor
|
|
|
|
class AppArmorError(HostAppArmorError):
|
|
"""General AppArmor error."""
|
|
pass
|
|
|
|
|
|
class AppArmorFileError(AppArmorError):
|
|
"""AppArmor profile file error."""
|
|
pass
|
|
|
|
|
|
class AppArmorInvalidError(AppArmorError):
|
|
"""AppArmor profile validate error."""
|
|
pass
|