Tag: cws_src680_dba23a
User: fs      
Date: 2007/03/08 01:33:37

Modified:
   dba/dbaccess/source/ui/dlg/CollectionView.cxx

Log:
 #i73084# insertHierachyElement: better error handling

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: CollectionView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/CollectionView.cxx?r1=1.7&r2=1.7.72.1
Delta lines:  +17 -3
--------------------
--- CollectionView.cxx  17 Sep 2006 07:04:21 -0000      1.7
+++ CollectionView.cxx  8 Mar 2007 09:33:34 -0000       1.7.72.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: CollectionView.cxx,v $
  *
- *  $Revision: 1.7 $
+ *  $Revision: 1.7.72.1 $
  *
- *  last change: $Author: obo $ $Date: 2006/09/17 07:04:21 $
+ *  last change: $Author: fs $ $Date: 2007/03/08 09:33:34 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -53,6 +53,9 @@
 #ifndef _COMPHELPER_INTERACTION_HXX_
 #include <comphelper/interaction.hxx>
 #endif
+#ifndef _CPPUHELPER_EXC_HLP_HXX_
+#include <cppuhelper/exc_hlp.hxx>
+#endif
 #ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
 #include <toolkit/helper/vclunohelper.hxx>
 #endif
@@ -98,6 +101,9 @@
 #ifndef _COM_SUN_STAR_TASK_INTERACTIONCLASSIFICATION_HPP_
 #include <com/sun/star/task/InteractionClassification.hpp>
 #endif
+#ifndef _COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP_
+#include <com/sun/star/sdbc/SQLException.hpp>
+#endif
 #ifndef _COM_SUN_STAR_AWT_XWINDOW_HPP_
 #include <com/sun/star/awt/XWindow.hpp>
 #endif
@@ -107,6 +113,9 @@
 #ifndef _OSL_THREAD_H_ 
 #include <osl/thread.h>
 #endif
+#ifndef _DBHELPER_DBEXCEPTION_HXX_
+#include <connectivity/dbexception.hxx>
+#endif
 
 #define FILEDIALOG_DEF_IMAGEBORDER     10
 //.........................................................................
@@ -121,6 +130,7 @@
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::ucb;
 using namespace ::com::sun::star::task;
+using namespace ::com::sun::star::sdbc;
 using namespace comphelper;
 // 
-----------------------------------------------------------------------------
 DBG_NAME(OCollectionView)
@@ -284,6 +294,10 @@
                if ( 
dbaui::insertHierachyElement(this,m_xORB,xNameContainer,String(),m_bCreateForm) 
)
                        m_aView.Initialize(m_xContent,String());
        }
+    catch( const SQLException& )
+    {
+        showError( ::dbtools::SQLExceptionInfo( ::cppu::getCaughtException() 
), this, m_xORB );
+    }
        catch(Exception)
        {
                OSL_ENSURE(0,"Exception caught!");




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to