From 88ac2544617276c3880c6de5ab349ba6ba32e556 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 25 Sep 2002 06:59:16 +0000 Subject: #103642# new mode flag: CONFIG_MODE_IGNORE_ERRORS --- unotools/source/config/configmgr.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'unotools/source/config') diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index 7ca59ecccfd4..afb300f5b8d5 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: configmgr.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.31 $ * - * last change: $Author: os $ $Date: 2002-09-25 07:51:42 $ + * last change: $Author: os $ $Date: 2002-09-25 07:59:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -289,11 +289,14 @@ Reference< XHierarchicalNameAccess> ConfigManager::AcquireTree(utl::ConfigItem& #ifdef DBG_UTIL catch(Exception& rEx) { - OString sMsg("CreateInstance exception: "); - sMsg += OString(rEx.Message.getStr(), - rEx.Message.getLength(), - RTL_TEXTENCODING_ASCII_US); - OSL_ENSURE(sal_False, sMsg.getStr()); + if(0 == (CONFIG_MODE_IGNORE_ERRORS & rCfgItem.GetMode())) + { + OString sMsg("CreateInstance exception: "); + sMsg += OString(rEx.Message.getStr(), + rEx.Message.getLength(), + RTL_TEXTENCODING_ASCII_US); + OSL_ENSURE(sal_False, sMsg.getStr()); + } } #else catch(Exception&) -- cgit v1.2.3