[gnote] Make more information on exceptions available
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make more information on exceptions available
- Date: Fri, 9 Mar 2012 20:21:32 +0000 (UTC)
commit f2e271ef86646e35673c749ccd43f84c92013ed7
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Fri Mar 9 22:16:24 2012 +0200
Make more information on exceptions available
src/synchronization/syncmanager.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/synchronization/syncmanager.cpp b/src/synchronization/syncmanager.cpp
index 0e2a2f9..c4f8120 100644
--- a/src/synchronization/syncmanager.cpp
+++ b/src/synchronization/syncmanager.cpp
@@ -792,6 +792,9 @@ namespace sync {
}
}
}
+ catch(std::exception & e) {
+ DBG_OUT("Exception caught in %s: %s\n", __func__, e.what());
+ }
catch(...) {
DBG_OUT("Exception caught in %s\n", __func__);
}
@@ -805,6 +808,9 @@ namespace sync {
Note::Ptr existingNote = SyncManager::obj().note_mgr().create_with_guid(noteUpdate.m_title, noteUpdate.m_uuid);
SyncManager::obj().update_local_note(existingNote, noteUpdate, DOWNLOAD_NEW);
}
+ catch(std::exception & e) {
+ DBG_OUT("Exception caught in %s: %s\n", __func__, e.what());
+ }
catch(...) {
DBG_OUT("Exception caught in %s\n", __func__);
}
@@ -818,6 +824,9 @@ namespace sync {
NoteUpdate & noteUpdate = *static_cast<NoteUpdate*>(note_update);
SyncManager::obj().update_local_note(*existingNote, noteUpdate, DOWNLOAD_MODIFIED);
}
+ catch(std::exception & e) {
+ DBG_OUT("Exception caught in %s: %s\n", __func__, e.what());
+ }
catch(...) {
DBG_OUT("Exception caught in %s\n", __func__);
}
@@ -830,6 +839,9 @@ namespace sync {
Note::Ptr *existingNote = static_cast<Note::Ptr*>(existing_note);
SyncManager::obj().note_mgr().delete_note(*existingNote);
}
+ catch(std::exception & e) {
+ DBG_OUT("Exception caught in %s: %s\n", __func__, e.what());
+ }
catch(...) {
DBG_OUT("Exception caught in %s\n", __func__);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]