syncevolution/src/gdbus
Zhu, Yongsheng 912ddf031d syncevo-dbus-server: add specific exceptions (MB#6548)
Define a DBusCxxException class in gdbus cxx bridge.
It only has 2 virtual functions: getName, getMessage,
which provide the information necessary to generate
a D-Bus error.

Then define a class DBusSyncException deriving from
DBusCxxException and SyncEvo::Exception.
Also 3 classes NoSuchConfig, NoSuchSource,
InvalidCall are based on DBusSyncException.
Turn some errors into these 3 specific errors.

Define a macro to let user have an opportunity to write
its own exception handling function. The SyncEvoHandleException()
logs the error via Exception::handle() and then overrides
the conversion of all exceptions so that they result in
an "org.syncevolution.Exception", unless specified otherwise
when throwing a DBusCXXException or dbus_error.
2009-11-10 13:39:14 +01:00
..
test gdbus C++: demonstrate how to bind methods in private base classes 2009-10-14 12:28:02 +02:00
debug.c Update copyright information 2009-10-07 16:07:47 +02:00
debug.h Don't add an extra newline in the debug messages 2009-10-07 16:07:49 +02:00
gdbus-cxx-bridge.h syncevo-dbus-server: add specific exceptions (MB#6548) 2009-11-10 13:39:14 +01:00
gdbus-cxx.h D-Bus C++: added the possibility to pass Caller ID string and a watch 2009-10-07 16:11:20 +02:00
gdbus.h gdbus: per-method callback data 2009-10-14 12:28:01 +02:00
mainloop.c Convert all documentation to gtk-doc style 2009-10-07 16:07:49 +02:00
Makefile.am D-Bus C++: C++ helper classes for libdbus/libgdbus 2009-10-07 16:11:20 +02:00
object.c gdbus: per-method callback data 2009-10-14 12:28:01 +02:00
README gdbus: start importing the complete upstream development history 2009-10-07 16:07:25 +02:00
watch.c gdbus: fixed segfault in watch disconnect function 2009-10-07 16:11:19 +02:00

This is a copy of the libgdbus source code:
http://git.kernel.org/?p=bluetooth/libgdbus.git;a=summary

It is licensed under LGPL v2.1, see upstream COPYING.

The source is included here because there is no stable
upstream release. Patches added here need to be submitted
upstream. Likewise, patches applied upstream must be imported.

The build/import-gdbus.sh script automates that process.
See build/import-foreign-git.sh for details.