From 20bae560c05a3df6e7ce8d4b869ed00f951c1e59 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 30 Sep 2017 17:32:50 +0200 Subject: throw more useful uno::Exception's if we're going to throw the base class of the exception hierarchy, we can at least put a useful message in there to make the source a little bit easier to locate. Change-Id: I2f3106c99ba25125eacef8fa77e2f3a2c89f2566 Reviewed-on: https://gerrit.libreoffice.org/42968 Reviewed-by: Mike Kaganski Tested-by: Jenkins Reviewed-by: Julien Nabet --- dbaccess/source/core/api/RowSet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 063c37318e5a..0a2d91000648 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -289,7 +289,7 @@ void SAL_CALL ORowSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const break; case PROPERTY_ID_FETCHDIRECTION: if( m_nResultSetType == ResultSetType::FORWARD_ONLY) - throw Exception(); + throw Exception("resultsettype is FORWARD_ONLY", nullptr); SAL_FALLTHROUGH; default: OPropertyStateContainer::setFastPropertyValue_NoBroadcast(nHandle,rValue); -- cgit