summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VCollection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/sdbcx/VCollection.cxx')
-rw-r--r--connectivity/source/sdbcx/VCollection.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx
index 595b66576ed1..70f15dc4bd9d 100644
--- a/connectivity/source/sdbcx/VCollection.cxx
+++ b/connectivity/source/sdbcx/VCollection.cxx
@@ -27,6 +27,7 @@
#include <comphelper/enumhelper.hxx>
#include <comphelper/types.hxx>
#include <comphelper/property.hxx>
+#include <cppuhelper/exc_hlp.hxx>
#include <TConnection.hxx>
#include <rtl/ustrbuf.hxx>
#include <strings.hrc>
@@ -533,6 +534,7 @@ ObjectType OCollection::getObject(sal_Int32 _nIndex)
}
catch(const SQLException& e)
{
+ css::uno::Any anyEx = cppu::getCaughtException();
try
{
dropImpl(_nIndex,false);
@@ -540,7 +542,7 @@ ObjectType OCollection::getObject(sal_Int32 _nIndex)
catch(const Exception& )
{
}
- throw WrappedTargetException(e.Message,static_cast<XTypeProvider*>(this),makeAny(e));
+ throw WrappedTargetException(e.Message,static_cast<XTypeProvider*>(this),anyEx);
}
m_pElements->setObject(_nIndex,xName);
}