2005-05-05 18:01:45 +00:00
|
|
|
import dbus_bindings
|
2005-05-01 19:34:58 +00:00
|
|
|
|
2005-05-05 18:01:45 +00:00
|
|
|
DBusException = dbus_bindings.DBusException
|
|
|
|
|
ConnectionError = dbus_bindings.ConnectionError
|
2005-05-01 19:34:58 +00:00
|
|
|
|
2005-05-05 18:01:45 +00:00
|
|
|
class MissingErrorHandlerException(DBusException):
|
2005-05-01 19:34:58 +00:00
|
|
|
def __init__(self):
|
2005-05-05 18:01:45 +00:00
|
|
|
DBusException.__init__(self, "error_handler not defined: if you define a reply_handler you must also define an error_handler")
|
2005-05-01 19:34:58 +00:00
|
|
|
|
2005-05-05 18:01:45 +00:00
|
|
|
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")
|
2005-05-01 19:34:58 +00:00
|
|
|
|
2005-05-05 18:01:45 +00:00
|
|
|
class ValidationException(DBusException):
|
2005-05-01 19:34:58 +00:00
|
|
|
def __init__(self, msg=''):
|
2005-05-05 18:01:45 +00:00
|
|
|
DBusException.__init__(self, "Error validating string: %s"%msg)
|
2005-05-01 19:34:58 +00:00
|
|
|
|
2005-05-05 18:01:45 +00:00
|
|
|
class UnknownMethodException(DBusException):
|
2005-05-01 19:34:58 +00:00
|
|
|
def __init__(self, msg=''):
|
2005-05-05 18:01:45 +00:00
|
|
|
DBusException.__init__("Unknown method: %s"%msg)
|
2005-05-01 19:34:58 +00:00
|
|
|
|