}
catch (GLib.Error e1)
{
+ /* Remove the persona store on error */
+ this.removed ();
+
if (e1.domain == BookClient.error_quark ())
{
switch ((BookClientError) e1.code)
if (this._addressbook.is_opened () == false)
{
+ /* Remove the persona store on error */
+ this.removed ();
+
throw new PersonaStoreError.INVALID_ARGUMENT (
/* Translators: the parameter is an address book URI. */
_("Couldn't open address book ā%sā."), this.id);
}
catch (GLib.Error e2)
{
+ /* Remove the persona store on error */
+ this.removed ();
+
throw new PersonaStoreError.INVALID_ARGUMENT (
/* Translators: the parameteter is an error message. */
_("Couldn't get address book capabilities: %s"), e2.message);
}
catch (GLib.Error e3)
{
+ /* Remove the persona store on error */
+ this.removed ();
+
if (e3.domain == BookClient.error_quark ())
{
switch ((BookClientError) e3.code)
{
warning ("Could not connect to D-Bus service: %s",
e1.message);
+ this.removed ();
throw new PersonaStoreError.INVALID_ARGUMENT (e1.message);
}
catch (Tracker.Sparql.Error e2)
{
warning ("Error fetching SPARQL connection handler: %s",
e2.message);
+ this.removed ();
throw new PersonaStoreError.INVALID_ARGUMENT (e2.message);
}
catch (GLib.DBusError e3)
{
warning ("Could not connect to D-Bus service: %s",
e3.message);
+ this.removed ();
throw new PersonaStoreError.INVALID_ARGUMENT (e3.message);
}
}