of course it works only if you have RTTI enabled then you can call `DBus::MessageError reply(msg, ERROR_MAPPING[typeid(e).name], DBUS_ERROR_FAILED);