glom r1815 - in trunk: . glom



Author: murrayc
Date: Thu Dec 18 18:30:25 2008
New Revision: 1815
URL: http://svn.gnome.org/viewvc/glom?rev=1815&view=rev

Log:
2008-12-18  Murray Cumming  <murrayc murrayc com>

* glom/base_db.cc: query_execute(): Catch ServerProviderError 
exceptions too. This needs the latest libgdamm

Modified:
   trunk/ChangeLog
   trunk/glom/base_db.cc

Modified: trunk/glom/base_db.cc
==============================================================================
--- trunk/glom/base_db.cc	(original)
+++ trunk/glom/base_db.cc	Thu Dec 18 18:30:25 2008
@@ -211,7 +211,11 @@
       }
       catch(const Gnome::Gda::ConnectionError& ex)
       {
-        std::cout << "debug: Base_DB::query_execute(): exception from statement_execute_select(): " << ex.what() << std::endl;
+        std::cout << "debug: Base_DB::query_execute(): ConnectionError: exception from statement_execute_select(): " << ex.what() << std::endl;
+      }
+      catch(const Gnome::Gda::ServerProviderError& ex)
+      {
+        std::cout << "debug: Base_DB::query_execute(): ServerProviderError: exception from statement_execute_select(): " << ex.what() << std::endl;
       }
 #else
       std::auto_ptr<Glib::Error> error;
@@ -230,7 +234,11 @@
       }
       catch(const Gnome::Gda::ConnectionError& ex)
       {
-        std::cout << "debug: Base_DB::query_execute(): exception from execute_non_select_command(): " << ex.what() << std::endl;
+        std::cout << "debug: Base_DB::query_execute(): ConnectionError: exception from execute_non_select_command(): " << ex.what() << std::endl;
+      }
+      catch(const Gnome::Gda::ServerProviderError& ex)
+      {
+        std::cout << "debug: Base_DB::query_execute(): ServerProviderError: exception from execute_non_select_command(): " << ex.what() << std::endl;
       }
 #else
       std::auto_ptr<Glib::Error> error;



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