diff options
author | Oliver Specht <os@openoffice.org> | 2002-09-25 06:59:16 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-09-25 06:59:16 +0000 |
commit | 88ac2544617276c3880c6de5ab349ba6ba32e556 (patch) | |
tree | a50ab53ed20360508066de46b4161b2b4d6d9272 /unotools/source/config | |
parent | 78691683c6de216301ee835b852442eeff72b861 (diff) |
#103642# new mode flag: CONFIG_MODE_IGNORE_ERRORS
Diffstat (limited to 'unotools/source/config')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
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&) |