Mercurial > libervia-backend
diff src/bridge/DBus.py @ 477:031b0e0aaab8
plugin groupblog: subscriptions/notifications
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Jun 2012 00:08:16 +0200 |
parents | db4c2b82bab6 |
children | 2a072735e459 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Thu May 31 00:26:39 2012 +0200 +++ b/src/bridge/DBus.py Mon Jun 25 00:08:16 2012 +0200 @@ -34,6 +34,9 @@ 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 @@ 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):