Tag: cws_src680_qiq
User: fs      
Date: 06/05/30 05:56:34

Modified:
 /dba/dbaccess/source/core/misc/
  objectnameapproval.cxx

Log:
 +ErrorReportType

File Changes:

Directory: /dba/dbaccess/source/core/misc/
==========================================

File [changed]: objectnameapproval.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/objectnameapproval.cxx?r1=1.1.2.2&r2=1.1.2.3
Delta lines:  +10 -5
--------------------
--- objectnameapproval.cxx      30 May 2006 08:23:40 -0000      1.1.2.2
+++ objectnameapproval.cxx      30 May 2006 12:56:32 -0000      1.1.2.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: objectnameapproval.cxx,v $
  *
- *  $Revision: 1.1.2.2 $
+ *  $Revision: 1.1.2.3 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/30 08:23:40 $
+ *  last change: $Author: fs $ $Date: 2006/05/30 12:56:32 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -86,17 +86,19 @@
     {
         WeakReference< XConnection >    aConnection;
         sal_Int32                       nCommandType;
+        ObjectNameApproval::ErrorReportType eErrorReportType;
     };
 
        //====================================================================
        //= ObjectNameApproval
        //====================================================================
        //--------------------------------------------------------------------
-    ObjectNameApproval::ObjectNameApproval( const Reference< XConnection >& 
_rxConnection, ObjectType _eType )
+    ObjectNameApproval::ObjectNameApproval( const Reference< XConnection >& 
_rxConnection, ObjectType _eType, ErrorReportType _eReportType )
         :m_pImpl( new ObjectNameApproval_Impl )
     {
         m_pImpl->aConnection = _rxConnection;
         m_pImpl->nCommandType = _eType == TypeQuery ? CommandType::QUERY : 
CommandType::TABLE;
+        m_pImpl->eErrorReportType = _eReportType;
     }
 
        //--------------------------------------------------------------------
@@ -119,6 +121,9 @@
         }
         catch( const SQLException& )
         {
+            if ( m_pImpl->eErrorReportType == ThrowSQLException )
+                throw;
+
            WrappedTargetException aWrapped;
             aWrapped.TargetException = ::cppu::getCaughtException();
             throw aWrapped;




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

Reply via email to