summaryrefslogtreecommitdiff
path: root/src/libtracker-bus/tracker-bus.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-10-11 15:12:46 +0200
committerMartyn Russell <martyn@lanedo.com>2010-10-14 16:43:33 +0100
commitea640fff349774821eba9fb0452171d43a10f9ce (patch)
tree21fd1006952da07bfcd5ccd14748147d3bf08dd6 /src/libtracker-bus/tracker-bus.vala
parent6744a2a7870270b062d41a767e00f2d837e26f81 (diff)
downloadtracker-ea640fff349774821eba9fb0452171d43a10f9ce.tar.gz
libtracker-sparql: Allow update_array_async to throw errors
Diffstat (limited to 'src/libtracker-bus/tracker-bus.vala')
-rw-r--r--src/libtracker-bus/tracker-bus.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 252785f39..3f1f9f454 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -107,7 +107,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
}
}
- public async override GLib.PtrArray? update_array_async (string[] sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) {
+ public async override GLib.PtrArray? update_array_async (string[] sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError {
try {
if (priority >= GLib.Priority.DEFAULT) {
return yield tracker_bus_fd_sparql_update_array_async (connection, sparql, cancellable);
@@ -115,7 +115,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
return yield tracker_bus_fd_sparql_batch_update_array_async (connection, sparql, cancellable);
}
} catch (DBus.Error e) {
- critical (e.message);
+ throw new Sparql.Error.INTERNAL (e.message);
}
}