summaryrefslogtreecommitdiff
path: root/dbus/exceptions.py
diff options
context:
space:
mode:
authorRobert McQueen <robot101@thubuntu.(none)>2006-07-12 19:26:39 +0100
committerRobert McQueen <robot101@thubuntu.(none)>2006-07-12 19:26:39 +0100
commitcc9eb8989a5782f62f8ca786d76e1267e48ec8bf (patch)
tree7777403cff56d1fbceb39df2753d91b4a3160be1 /dbus/exceptions.py
parent260a7da603a0449a117690a9cc46c7d171ec1112 (diff)
Move python/ to dbus/, the name of the module.
Diffstat (limited to 'dbus/exceptions.py')
-rw-r--r--dbus/exceptions.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/dbus/exceptions.py b/dbus/exceptions.py
new file mode 100644
index 0000000..2b01b96
--- /dev/null
+++ b/dbus/exceptions.py
@@ -0,0 +1,29 @@
+import dbus_bindings
+
+DBusException = dbus_bindings.DBusException
+ConnectionError = dbus_bindings.ConnectionError
+
+class MissingErrorHandlerException(DBusException):
+ def __init__(self):
+ DBusException.__init__(self, "error_handler not defined: if you define a reply_handler you must also define an error_handler")
+
+class MissingReplyHandlerException(DBusException):
+ def __init__(self):
+ DBusException.__init__(self, "reply_handler not defined: if you define an error_handler you must also define a reply_handler")
+
+class ValidationException(DBusException):
+ def __init__(self, msg=''):
+ DBusException.__init__(self, "Error validating string: %s"%msg)
+
+class IntrospectionParserException(DBusException):
+ def __init__(self, msg=''):
+ DBusException.__init__(self, "Error parsing introspect data: %s"%msg)
+
+class UnknownMethodException(DBusException):
+ def __init__(self, method):
+ DBusException.__init__(self, "Unknown method: %s"%method)
+
+class NameExistsException(DBusException):
+ def __init__(self, name):
+ DBusException.__init__(self, "Bus name already exists: %s"%name)
+