summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-13 11:55:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-07-13 12:12:41 +0200
commit2e7702fb704133bad6a534a166e96599347cf6b4 (patch)
tree0da3b3e41bf753ff26fc307336406cedb5d8eba4
parentb32fcb79af8fdf905c8e09f987f7754a43079901 (diff)
fdo#51143 Do not wrap CannotActivateFactoryException as DeploymentException
...as some client code catches just the former and thus fails now. (This was a regression introduced with the recent cppuhelper/source/defaultbootstrap.cxx.) Change-Id: I8306797f8331d894ab4e7695478e3824e9f79197
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx24
1 files changed, 6 insertions, 18 deletions
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index 4edd7a15c07f..078ee29ac97d 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -872,15 +872,9 @@ void ServiceManager::loadImplementation(
if (!prefix.isEmpty()) {
prefix += "_";
}
- try {
- f0 = cppu::loadSharedLibComponentFactory(
- uri, rtl::OUString(), info->name, this,
- css::uno::Reference< css::registry::XRegistryKey >(), prefix);
- } catch (css::loader::CannotActivateFactoryException & e) {
- throw css::uno::DeploymentException(
- "Cannot activate implementation " + uri + ": " + e.Message,
- static_cast< cppu::OWeakObject * >(this));
- }
+ f0 = cppu::loadSharedLibComponentFactory(
+ uri, rtl::OUString(), info->name, this,
+ css::uno::Reference< css::registry::XRegistryKey >(), prefix);
} else {
SAL_INFO_IF(
!info->prefix.isEmpty(), "cppuhelper",
@@ -900,15 +894,9 @@ void ServiceManager::loadImplementation(
css::uno::Reference< css::loader::XImplementationLoader > loader(
smgr->createInstanceWithContext(info->loader, ctxt),
css::uno::UNO_QUERY_THROW);
- try {
- f0 = loader->activate(
- info->name, rtl::OUString(), uri,
- css::uno::Reference< css::registry::XRegistryKey >());
- } catch (css::loader::CannotActivateFactoryException & e) {
- throw css::uno::DeploymentException(
- "Cannot activate implementation " + uri + ": " + e.Message,
- static_cast< cppu::OWeakObject * >(this));
- }
+ f0 = loader->activate(
+ info->name, rtl::OUString(), uri,
+ css::uno::Reference< css::registry::XRegistryKey >());
}
factory1->set(f0, css::uno::UNO_QUERY);
if (!factory1->is()) {