summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-09 20:43:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-09 21:07:39 +0000
commit99f50cd8e2ceae421de3f5274dcd5619053bb27f (patch)
tree1f390ea0d6e6c973bd7306023c02d55b0ce3692a /framework
parentb0a7722ebfa720255b6ce1e383a3aacae0ce5e9f (diff)
coverity#1169846 Uncaught exception
Change-Id: Iae590d7b9ca2701a6917823524f819d18cb5676f
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 028ab82acd09..981e6c6b9045 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -36,6 +36,7 @@
#include <com/sun/star/ui/XUIConfigurationPersistence.hpp>
#include <com/sun/star/ui/XModuleUIConfigurationManager2.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
+#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
@@ -1058,9 +1059,12 @@ void SAL_CALL ModuleUIConfigurationManager::reset() throw (::com::sun::star::uno
impl_resetElementTypeData( rUserElementType, rDefaultElementType, aRemoveEventNotifyContainer, aReplaceEventNotifyContainer );
rUserElementType.bModified = false;
}
- catch ( const Exception& )
+ catch (const Exception& e)
{
- throw IOException();
+ css::uno::Any a(e);
+ throw css::lang::WrappedTargetRuntimeException(
+ OUString("ModuleUIConfigurationManager::reset exception"),
+ css::uno::Reference<css::uno::XInterface>(*this), a);
}
}