Tag: cws_src680_qiq User: fs Date: 06/05/18 01:36:54 Modified: /dba/connectivity/source/commontools/ dbexception.cxx
Log: copying the change from CWS dba30 herein (prepend) File Changes: Directory: /dba/connectivity/source/commontools/ ================================================ File [changed]: dbexception.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/dbexception.cxx?r1=1.15.56.1&r2=1.15.56.2 Delta lines: +13 -2 -------------------- --- dbexception.cxx 17 May 2006 05:19:18 -0000 1.15.56.1 +++ dbexception.cxx 18 May 2006 08:36:52 -0000 1.15.56.2 @@ -4,9 +4,9 @@ * * $RCSfile: dbexception.cxx,v $ * - * $Revision: 1.15.56.1 $ + * $Revision: 1.15.56.2 $ * - * last change: $Author: fs $ $Date: 2006/05/17 05:19:18 $ + * last change: $Author: fs $ $Date: 2006/05/18 08:36:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -212,6 +212,17 @@ { OSL_ENSURE(isKindOf(SQL_CONTEXT), "SQLExceptionInfo::operator SQLException* : invalid call !"); return reinterpret_cast<const ::com::sun::star::sdb::SQLContext*>(m_aContent.getValue()); +} + +//------------------------------------------------------------------------------ +void SQLExceptionInfo::prepend( const ::rtl::OUString& _rErrorMessage, const sal_Char* _pAsciiSQLState, const sal_Int32 _nErrorCode ) +{ + SQLException aException; + aException.Message = _rErrorMessage; + aException.ErrorCode = _nErrorCode; + aException.SQLState = ::rtl::OUString::createFromAscii( _pAsciiSQLState ? _pAsciiSQLState : "S1000" ); + aException.NextException = m_aContent; + m_aContent <<= aException; } //============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
