From d2092dc56b19c24b481f64fa9708f4ed3f9c8dfb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 17 Sep 2012 19:12:34 +0200 Subject: Keep null service manager throw a DeploymentException ...rather than a general RuntimeException, for consistency with existing service ctor code. Change-Id: Ia9ac14a1b5bcecb24394e7b9cade369f3f9303f0 --- cppuhelper/source/component_context.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cppuhelper/source') diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index ac416f1745f9..4ad3e13ce6af 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -60,6 +60,7 @@ #include #include #include +#include "com/sun/star/uno/DeploymentException.hpp" #include "com/sun/star/uno/RuntimeException.hpp" #include @@ -674,7 +675,7 @@ Reference< lang::XMultiComponentFactory > ComponentContext::getServiceManager() { if ( !m_xSMgr.is() ) { - throw RuntimeException( + throw DeploymentException( "null component context service manager", static_cast(this) ); } -- cgit