veilid/scripts/earthly/secretsd/secretsd/exception.py

19 lines
656 B
Python
Raw Normal View History

2022-01-09 20:17:36 +00:00
import dbus
class InvalidArgsException(dbus.DBusException):
_dbus_error_name = "org.freedesktop.DBus.Error.InvalidArgs"
class NotYetImplementedException(dbus.DBusException):
_dbus_error_name = "org.freedesktop.DBus.Error.NotSupported"
def __init__(self):
super().__init__("TODO: Not implemented")
class IsLockedException(dbus.DBusException):
_dbus_error_name = "org.freedesktop.Secret.Error.IsLocked"
class NoSessionException(dbus.DBusException):
_dbus_error_name = "org.freedesktop.Secret.Error.NoSession"
class NoSuchObjectException(dbus.DBusException):
_dbus_error_name = "org.freedesktop.Secret.Error.NoSuchObject"