try {
databaseManager.startTransaction();
plugins.mobileservice.performSync(data,version,authenticateResult);
databaseManager.commitTransaction();
} catch (e) {
databaseManager.rollbackTransaction();
// log the error and return false to that the mobile client will know the sync did fail.
application.output(e,LOGGINGLEVEL.ERROR);
return false;
}
|