Tag: cws_src680_qiq User: fs Date: 06/06/09 04:54:24 Modified: /dba/connectivity/source/commontools/ dbexception.cxx
Log: #i51143# +SQLExceptionInfo::doThrow 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.4&r2=1.15.56.5 Delta lines: +14 -2 -------------------- --- dbexception.cxx 19 May 2006 09:46:41 -0000 1.15.56.4 +++ dbexception.cxx 9 Jun 2006 11:54:22 -0000 1.15.56.5 @@ -4,9 +4,9 @@ * * $RCSfile: dbexception.cxx,v $ * - * $Revision: 1.15.56.4 $ + * $Revision: 1.15.56.5 $ * - * last change: $Author: fs $ $Date: 2006/05/19 09:46:41 $ + * last change: $Author: fs $ $Date: 2006/06/09 11:54:22 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -270,6 +270,18 @@ { m_aContent = aAppend; m_eType = _eType; + } +} + +//------------------------------------------------------------------------------ +void SQLExceptionInfo::doThrow() +{ + switch ( m_eType ) + { + case SQL_EXCEPTION: throw *(const SQLException*)(*this); + case SQL_WARNING: throw *(const SQLWarning*)(*this); + case SQL_CONTEXT: throw *(const SQLContext*)(*this); + default: throw RuntimeException(); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
