dbus.exceptions module — dbus-python 1.4.0 documentation

# dbus.exceptions module

D-Bus exceptions.

exception dbus.exceptions.DBusException(*args, **kwargs)

  Bases: `Exception`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = False

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.IntrospectionParserException(msg='')

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.MissingErrorHandlerException

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.MissingReplyHandlerException

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.NameExistsException(name)

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.UnknownMethodException(method)

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.

exception dbus.exceptions.ValidationException(msg='')

  Bases: `DBusException`

  add_note(note, /)

    Add a note to the exception

  args
  get_dbus_message()
  get_dbus_name()
  include_traceback = True

    If True, tracebacks will be included in the exception message sent to D-Bus clients.

    Exceptions that are not DBusException subclasses always behave as though this is True. Set this to True on DBusException subclasses that represent a programming error, and leave it False on subclasses that represent an expected failure condition (e.g. a network server not responding).

  with_traceback(tb, /)

    Set self.__traceback__ to tb and return self.