plugin groupblog: subscriptions/notifications
This commit is contained in:
parent
41605b1425
commit
357374bcd2
1 changed files with 101 additions and 6 deletions
|
|
@ -34,6 +34,9 @@ const_OBJ_PATH = '/org/goffi/SAT/bridge'
|
|||
const_CORE_SUFFIX = ".core"
|
||||
const_PLUGIN_SUFFIX = ".plugin"
|
||||
|
||||
class ParseError(Exception):
|
||||
pass
|
||||
|
||||
class MethodNotRegistered(dbus.DBusException):
|
||||
_dbus_error_name = const_ERROR_PREFIX + ".MethodNotRegistered"
|
||||
|
||||
|
|
@ -50,7 +53,7 @@ class GenericException(dbus.DBusException):
|
|||
def __init__(self, twisted_error):
|
||||
super(GenericException,self).__init__()
|
||||
mess = twisted_error.getErrorMessage()
|
||||
self._dbus_error_name = const_ERROR_PREFIX+"."+ (mess or str(err.__class__))
|
||||
self._dbus_error_name = const_ERROR_PREFIX+"."+ (mess or str(twisted_error.__class__))
|
||||
|
||||
class DbusObject(dbus.service.Object):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue