paperbox r193 - in trunk: . src



Author: markoa
Date: Wed Oct  1 13:20:44 2008
New Revision: 193
URL: http://svn.gnome.org/viewvc/paperbox?rev=193&view=rev

Log:
Catch std::exceptions in document retrieval func

Modified:
   trunk/ChangeLog
   trunk/src/browser.cc

Modified: trunk/src/browser.cc
==============================================================================
--- trunk/src/browser.cc	(original)
+++ trunk/src/browser.cc	Wed Oct  1 13:20:44 2008
@@ -137,6 +137,9 @@
         catch (const Glib::FileError& ex) {
             // probably a nonexistent file in the index
             LOG_EXCEPTION(uri << ": " << ex.what());
+        } catch (const std::exception& ex) {
+            LOG_EXCEPTION("Unexpected exception while retrieving document "
+                    << uri << ": " << ex.what());
         }
 
         uri_queue_.pop();



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