Tag: cws_src680_dba23a
User: fs      
Date: 2007/03/14 05:16:23

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

Log:
 #i75261# additional exception info a ctor without SQL exceptions

File Changes:

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

File [changed]: sqlmessage.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/sqlmessage.cxx?r1=1.24&r2=1.24.60.1
Delta lines:  +6 -4
-------------------
--- sqlmessage.cxx      12 Oct 2006 13:38:15 -0000      1.24
+++ sqlmessage.cxx      14 Mar 2007 12:16:21 -0000      1.24.60.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlmessage.cxx,v $
  *
- *  $Revision: 1.24 $
+ *  $Revision: 1.24.60.1 $
  *
- *  last change: $Author: obo $ $Date: 2006/10/12 13:38:15 $
+ *  last change: $Author: fs $ $Date: 2007/03/14 12:16:21 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -699,7 +699,7 @@
 }
 
 
//------------------------------------------------------------------------------
-OSQLMessageBox::OSQLMessageBox( Window* _pParent, const UniString& _rTitle, 
const UniString& _rMessage, WinBits _nStyle, MessageType _eImage )
+OSQLMessageBox::OSQLMessageBox( Window* _pParent, const UniString& _rTitle, 
const UniString& _rMessage, WinBits _nStyle, MessageType _eImage, const 
::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo )
     :ButtonDialog( _pParent, WB_HORZ | WB_STDDIALOG )
     ,m_aInfoImage( this )
     ,m_aTitle( this, WB_WORDBREAK | WB_LEFT )
@@ -708,6 +708,8 @@
     SQLContext aError;
     aError.Message = _rTitle;
     aError.Details = _rMessage;
+    if ( _pAdditionalErrorInfo )
+        aError.NextException = _pAdditionalErrorInfo->get();
 
     m_pImpl.reset( new SQLMessageBox_Impl( SQLExceptionInfo( aError ) ) );
 




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

Reply via email to