Tag: cws_src680_dba24c
User: fs      
Date: 2007-09-18 20:03:37+0000
Modified:
   dba/connectivity/inc/connectivity/sqlerror.hxx

Log:
 +getSQLException

File Changes:

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

File [changed]: sqlerror.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/sqlerror.hxx?r1=1.1.2.3&r2=1.1.2.4
Delta lines:  +41 -2
--------------------
--- sqlerror.hxx        2007-09-18 13:14:08+0000        1.1.2.3
+++ sqlerror.hxx        2007-09-18 20:03:35+0000        1.1.2.4
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlerror.hxx,v $
  *
- *  $Revision: 1.1.2.3 $
+ *  $Revision: 1.1.2.4 $
  *
- *  last change: $Author: fs $ $Date: 2007/09/18 13:14:08 $
+ *  last change: $Author: fs $ $Date: 2007/09/18 20:03:35 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -37,6 +37,7 @@
 #define CONNECTIVITY_SQLERROR_HXX
 
 /** === begin UNO includes === **/
+#include <com/sun/star/sdbc/SQLException.hpp>
 /** === end UNO includes === **/
 
 #include <comphelper/componentcontext.hxx>
@@ -297,6 +298,44 @@
                             const ParamValue& _rParamValue3 = ParamValue()
                         ) const;
 
+        /** retrieves an <code>SQLException</code> object which contains 
information about
+            the given error condition
+
+            @param  _eCondition
+                the ErrorCondition which hit you
+
+            @param  _rxContext
+                the context in which the error occured. This will be filled in 
as
+                <member 
scope="com::sun::star::uno">Exception::Context</member> member.
+
+            @param _rParamValue1
+                a runtime-dependent value which should be filled into the 
error message
+                which is associated with <arg>_eCondition</arg>, replacing the 
first placeholder
+                in this message.
+
+            @param _rParamValue2
+                a runtime-dependent value which should be filled into the 
error message
+                which is associated with <arg>_eCondition</arg>, replacing the 
second placeholder
+                in this message.
+
+            @param _rParamValue3
+                a runtime-dependent value which should be filled into the 
error message
+                which is associated with <arg>_eCondition</arg>, replacing the 
third placeholder
+                in this message.
+
+            @see getErrorMessage
+            @see getErrorCode
+            @see getSQLState
+        */
+        ::com::sun::star::sdbc::SQLException
+                        getSQLException(
+                            const ErrorCondition _eCondition,
+                            const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface >& _rxContext,
+                            const ParamValue& _rParamValue1 = ParamValue(),
+                            const ParamValue& _rParamValue2 = ParamValue(),
+                            const ParamValue& _rParamValue3 = ParamValue()
+                        ) const;
+
     private:
         ::boost::shared_ptr< SQLError_Impl > m_pImpl;
        };




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

Reply via email to