diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-21 10:40:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-21 13:59:34 +0100 |
commit | 8923103eeedc79ee8e4384ea4a1df57d76a0d5d4 (patch) | |
tree | e074dd6049e24beeee93c36258b615557f443f6e /include | |
parent | d4758e6f699259e865426fd761c58009d3eca7d1 (diff) |
coverity#706376 Uncaught exception
Change-Id: Ic18823fd60826c144058df32c27ab25d58664e30
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/dbexception.hxx | 18 |
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 |