Tag: cws_src680_qiq
User: fs      
Date: 06/05/11 03:31:13

Modified:
 /dba/connectivity/source/commontools/
  dbtools.cxx

Log:
 #i51143# +prependErrorInfo

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: dbtools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/dbtools.cxx?r1=1.59&r2=1.59.34.1
Delta lines:  +12 -9
--------------------
--- dbtools.cxx 14 Mar 2006 10:47:47 -0000      1.59
+++ dbtools.cxx 11 May 2006 10:31:09 -0000      1.59.34.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dbtools.cxx,v $
  *
- *  $Revision: 1.59 $
+ *  $Revision: 1.59.34.1 $
  *
- *  last change: $Author: vg $ $Date: 2006/03/14 10:47:47 $
+ *  last change: $Author: fs $ $Date: 2006/05/11 10:31:09 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -839,12 +839,15 @@
 
//------------------------------------------------------------------------------
 SQLContext prependContextInfo(const SQLException& _rException, const 
Reference< XInterface >& _rxContext, const ::rtl::OUString& 
_rContextDescription, const ::rtl::OUString& _rContextDetails)
 {
-       // determine the type of the exception
-       SQLExceptionInfo aInfo(_rException);
-
-       // the new first chain element
-       SQLContext aContextDescription(_rContextDescription, _rxContext, 
::rtl::OUString(), 0, aInfo.get(), _rContextDetails);
-       return aContextDescription;
+       return SQLContext( _rContextDescription, _rxContext, ::rtl::OUString(), 
0, makeAny( _rException ), _rContextDetails );
+}
+//------------------------------------------------------------------------------
+SQLException prependErrorInfo( const SQLException& _rChainedException, const 
Reference< XInterface >& _rxContext,
+    const ::rtl::OUString& _rAdditionalError, const StandardSQLState 
_eSQLState, const sal_Int32 _nErrorCode )
+{
+    return SQLException( _rAdditionalError, _rxContext,
+        _eSQLState == SQL_ERROR_UNSPECIFIED ? ::rtl::OUString() : 
getStandardSQLState( _eSQLState ),
+        _nErrorCode, makeAny( _rChainedException ) );
 }
 
//------------------------------------------------------------------------------
 ::rtl::OUString quoteTableName(const Reference< XDatabaseMetaData>& _rxMeta




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

Reply via email to