[tracker/rss-enclosures] libtracker-bus: Handle SPARQL errors received via D-Bus
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-bus: Handle SPARQL errors received via D-Bus
- Date: Wed, 24 Nov 2010 01:21:52 +0000 (UTC)
commit 865a2f7dc3c0c85fde6854899dbece75a04fa212
Author: Jürg Billeter <j bitron ch>
Date: Tue Aug 17 12:45:50 2010 +0200
libtracker-bus: Handle SPARQL errors received via D-Bus
src/libtracker-bus/tracker-bus.vala | 12 ++++++------
src/libtracker-sparql/tracker-connection.vala | 1 +
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index c1164ad..9ed11a6 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -19,17 +19,17 @@
[DBus (name = "org.freedesktop.Tracker1.Resources")]
private interface Tracker.Bus.Resources : GLib.Object {
- public abstract string[,] sparql_query (string query) throws DBus.Error;
+ public abstract string[,] sparql_query (string query) throws Sparql.Error, DBus.Error;
[DBus (name = "SparqlQuery")]
- public abstract async string[,] sparql_query_async (string query) throws DBus.Error;
+ public abstract async string[,] sparql_query_async (string query) throws Sparql.Error, DBus.Error;
- public abstract void sparql_update (string query) throws DBus.Error;
+ public abstract void sparql_update (string query) throws Sparql.Error, DBus.Error;
[DBus (name = "SparqlUpdate")]
- public abstract async void sparql_update_async (string query) throws DBus.Error;
+ public abstract async void sparql_update_async (string query) throws Sparql.Error, DBus.Error;
- public abstract void load (string uri) throws DBus.Error;
+ public abstract void load (string uri) throws Sparql.Error, DBus.Error;
[DBus (name = "Load")]
- public abstract async void load_async (string uri) throws DBus.Error;
+ public abstract async void load_async (string uri) throws Sparql.Error, DBus.Error;
}
[DBus (name = "org.freedesktop.Tracker1.Statistics")]
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index bb4ec8d..7e3f8d4 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -59,6 +59,7 @@ public const string TRACKER_DBUS_OBJECT_STEROIDS = "/org/freedesktop/Tracker1/St
*
* Possible errors reported in the operations with the #TrackerSparqlConnection.
*/
+[DBus (name = "org.freedesktop.DBus.GLib.UnmappedError.TrackerSparqlErrorQuark")]
public errordomain Tracker.Sparql.Error {
PARSE,
UNKNOWN_CLASS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]