diff options
author | Jürg Billeter <j@bitron.ch> | 2010-10-11 15:12:46 +0200 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2010-10-14 16:43:33 +0100 |
commit | ea640fff349774821eba9fb0452171d43a10f9ce (patch) | |
tree | 21fd1006952da07bfcd5ccd14748147d3bf08dd6 /src/libtracker-bus/tracker-bus.vala | |
parent | 6744a2a7870270b062d41a767e00f2d837e26f81 (diff) | |
download | tracker-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.vala | 4 |
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); } } |