From 2e7702fb704133bad6a534a166e96599347cf6b4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jul 2012 11:55:53 +0200 Subject: 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 --- cppuhelper/source/defaultbootstrap.cxx | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'cppuhelper/source/defaultbootstrap.cxx') 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()) { -- cgit