From 8923103eeedc79ee8e4384ea4a1df57d76a0d5d4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 21 Jul 2014 10:40:45 +0100 Subject: coverity#706376 Uncaught exception Change-Id: Ic18823fd60826c144058df32c27ab25d58664e30 --- include/connectivity/dbexception.hxx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'include/connectivity') 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 -- cgit