[niepce] Add a better exception catch in case, for debugging.



commit 5f0dea1839e7009584ac82ced899b4a42e15f3b0
Author: Hubert Figuière <hub figuiere net>
Date:   Sun Jun 23 22:24:56 2013 -0400

    Add a better exception catch in case, for debugging.

 src/niepce/notificationcenter.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/niepce/notificationcenter.cpp b/src/niepce/notificationcenter.cpp
index a53ac71..f11b16e 100644
--- a/src/niepce/notificationcenter.cpp
+++ b/src/niepce/notificationcenter.cpp
@@ -60,6 +60,12 @@ void NotificationCenter::dispatch_notification(const fwk::Notification::Ptr &n)
     {
         ERR_OUT("improper notification data: %s", e.what());
     }
+    catch(const std::exception & e)
+    {
+        ERR_OUT("other exception notification type %d of %s: %s", n->type(),
+                n->data().type().name(),
+                e.what());
+    }
     catch(...)
     {
         ERR_OUT("unknown exception");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]