summaryrefslogtreecommitdiff
path: root/include/connectivity/dbexception.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-21 10:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-21 13:59:34 +0100
commit8923103eeedc79ee8e4384ea4a1df57d76a0d5d4 (patch)
treee074dd6049e24beeee93c36258b615557f443f6e /include/connectivity/dbexception.hxx
parentd4758e6f699259e865426fd761c58009d3eca7d1 (diff)
coverity#706376 Uncaught exception
Change-Id: Ic18823fd60826c144058df32c27ab25d58664e30
Diffstat (limited to 'include/connectivity/dbexception.hxx')
-rw-r--r--include/connectivity/dbexception.hxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx
index 1e7fade75af1..c93371618344 100644
--- a/include/connectivity/dbexception.hxx
+++ b/include/connectivity/dbexception.hxx
@@ -285,13 +285,27 @@ OOO_DLLPUBLIC_DBTOOLS void throwGenericSQLException(
@param _pNextException
the next exception to chain into the thrown exception, if any
*/
-OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedException(
+OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedSQLException(
const OUString& _rFeatureName,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext,
const ::com::sun::star::uno::Any* _pNextException = NULL
)
- throw (::com::sun::star::sdbc::SQLException);
+ throw (css::sdbc::SQLException);
+/** throw a RuntimeException (Optional feature not implemented)
+ @param _rFeatureName
+ a description of the feature which is not implemented. It's recommended that the feature
+ name is built from the name of the interface plus its method, for instance "XParameters::updateBinaryStream"
+ @param _rxContext
+ the context of the exception
+ @param _pNextException
+ the next exception to chain into the thrown exception, if any
+*/
+OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedRuntimeException(
+ const OUString& _rFeatureName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext
+ )
+ throw (css::uno::RuntimeException);
/** throw a SQLException with SQLState 42S22 (Column Not Found)
@param _rColumnNameName