Tag: cws_src680_qiq
User: fs      
Date: 06/05/18 02:08:16

Modified:
 /dba/connectivity/inc/connectivity/
  dbexception.hxx

Log:
 #i51143# SQLExceptionInfo::append

File Changes:

Directory: /dba/connectivity/inc/connectivity/
==============================================

File [changed]: dbexception.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/dbexception.hxx?r1=1.14.56.3&r2=1.14.56.4
Delta lines:  +48 -35
---------------------
--- dbexception.hxx     18 May 2006 08:35:23 -0000      1.14.56.3
+++ dbexception.hxx     18 May 2006 09:08:13 -0000      1.14.56.4
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dbexception.hxx,v $
  *
- *  $Revision: 1.14.56.3 $
+ *  $Revision: 1.14.56.4 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/18 08:35:23 $
+ *  last change: $Author: fs $ $Date: 2006/05/18 09:08:13 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -63,6 +63,39 @@
 {
 //.........................................................................
 
+//----------------------------------------------------------------------------------
+/** standard SQLStates to be used with an SQLException
+
+    Extend this list whenever you need a new state ...
+
+    @see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_error_codes.asp
+*/
+enum StandardSQLState
+{
+    SQL_WRONG_PARAMETER_NUMBER,     // 07001
+    SQL_INVALID_DESCRIPTOR_INDEX,   // 07009
+    SQL_UNABLE_TO_CONNECT,          // 08001
+    SQL_NUMERIC_OUT_OF_RANGE,       // 22003
+    SQL_INVALID_DATE_TIME,          // 22007
+    SQL_INVALID_CURSOR_STATE,       // 24000
+    SQL_TABLE_OR_VIEW_EXISTS,       // 42S01
+    SQL_TABLE_OR_VIEW_NOT_FOUND,    // 42S02
+    SQL_INDEX_ESISTS,               // 42S11
+    SQL_INDEX_NOT_FOUND,            // 42S12
+    SQL_COLUMN_EXISTS,              // 42S21
+    SQL_COLUMN_NOT_FOUND,           // 42S22
+    SQL_GENERAL_ERROR,              // HY000
+    SQL_OPERATION_CANCELED,         // HY008
+    SQL_FUNCTION_SEQUENCE_ERROR,    // HY010
+    SQL_INVALID_CURSOR_POSITION,    // HY109
+    SQL_INVALID_BOOKMARK_VALUE,     // HY111
+    SQL_FEATURE_NOT_IMPLEMENTED,    // HYC00
+    SQL_FUNCTION_NOT_SUPPORTED,     // IM001
+    SQL_CONNECTION_DOES_NOT_EXIST,  // 08003
+
+    SQL_ERROR_UNSPECIFIED = SAL_MAX_ENUM    // special value indicating that 
an SQLState is not to be specified
+};
+
 
//==============================================================================
 //= SQLExceptionInfo - encapsulating the type info of an SQLException-derived 
class
 
//==============================================================================
@@ -108,6 +141,19 @@
     */
     void    prepend( const ::rtl::OUString& _rErrorMessage, const sal_Char* 
_pAsciiSQLState = NULL, const sal_Int32 _nErrorCode = 0 );
 
+    /** appends a plain message to the chain of exceptions
+        @param  _eType
+            the type of exception to append. Must be SQL_EXCEPTION, 
SQL_WARNING, SQL_CONTEXT, for all other
+            values, the behavior is undefined.
+        @param  _rErrorMessage
+            the message to append
+        @param  _pAsciiSQLState
+            the SQLState of the exception to append
+        @param  _nErrorCode
+            the error code of the exception to append
+    */
+    void    append( TYPE _eType, const ::rtl::OUString& _rErrorMessage, const 
sal_Char* _pAsciiSQLState = NULL, const sal_Int32 _nErrorCode = 0 );
+
        const SQLExceptionInfo& operator=(const 
::com::sun::star::sdbc::SQLException& _rError);
        const SQLExceptionInfo& operator=(const 
::com::sun::star::sdbc::SQLWarning& _rError);
        const SQLExceptionInfo& operator=(const 
::com::sun::star::sdb::SQLContext& _rError);
@@ -159,39 +205,6 @@
 
//==================================================================================
 //=    StandardExceptions
 
//==================================================================================
-//----------------------------------------------------------------------------------
-/** standard SQLStates to be used with an SQLException
-
-    Extend this list whenever you need a new state ...
-
-    @see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_error_codes.asp
-*/
-enum StandardSQLState
-{
-    SQL_WRONG_PARAMETER_NUMBER,     // 07001
-    SQL_INVALID_DESCRIPTOR_INDEX,   // 07009
-    SQL_UNABLE_TO_CONNECT,          // 08001
-    SQL_NUMERIC_OUT_OF_RANGE,       // 22003
-    SQL_INVALID_DATE_TIME,          // 22007
-    SQL_INVALID_CURSOR_STATE,       // 24000
-    SQL_TABLE_OR_VIEW_EXISTS,       // 42S01
-    SQL_TABLE_OR_VIEW_NOT_FOUND,    // 42S02
-    SQL_INDEX_ESISTS,               // 42S11
-    SQL_INDEX_NOT_FOUND,            // 42S12
-    SQL_COLUMN_EXISTS,              // 42S21
-    SQL_COLUMN_NOT_FOUND,           // 42S22
-    SQL_GENERAL_ERROR,              // HY000
-    SQL_OPERATION_CANCELED,         // HY008
-    SQL_FUNCTION_SEQUENCE_ERROR,    // HY010
-    SQL_INVALID_CURSOR_POSITION,    // HY109
-    SQL_INVALID_BOOKMARK_VALUE,     // HY111
-    SQL_FEATURE_NOT_IMPLEMENTED,    // HYC00
-    SQL_FUNCTION_NOT_SUPPORTED,     // IM001
-    SQL_CONNECTION_DOES_NOT_EXIST,  // 08003
-
-    SQL_ERROR_UNSPECIFIED = SAL_MAX_ENUM    // special value indicating that 
an SQLState is not to be specified
-};
-
 
//----------------------------------------------------------------------------------
 /** returns a standard error string for a given SQLState
 




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

Reply via email to