diff options
author | Alexis Ledoux <aledoux@openoffice.org> | 2002-09-24 11:59:32 +0000 |
---|---|---|
committer | Alexis Ledoux <aledoux@openoffice.org> | 2002-09-24 11:59:32 +0000 |
commit | fcf8adb82fb421cd7cc4fb6b98a821f1234cd465 (patch) | |
tree | 668e60aaacc29ed4e64981f6235f3c06b9a6b672 /scripting/source/runtimemgr/ScriptNameResolverImpl.cxx | |
parent | e082fb611958cee8b945bf6fb9feaf48b5fa63f2 (diff) |
Changes from OUString + to OUString concat for exception
Diffstat (limited to 'scripting/source/runtimemgr/ScriptNameResolverImpl.cxx')
-rw-r--r-- | scripting/source/runtimemgr/ScriptNameResolverImpl.cxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx index e14f1b43710c..cf7ffeb89490 100644 --- a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx +++ b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ScriptNameResolverImpl.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: dfoster $ $Date: 2002-09-20 14:33:29 $ + * last change: $Author: aledoux $ $Date: 2002-09-24 12:59:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -146,7 +146,8 @@ throw (lang::IllegalArgumentException, script::CannotConvertException, RuntimeEx } catch (Exception & e) { - throw RuntimeException(OUSTR("ScriptNameResolverImpl::resolve : problem with getPropertyValue")+e.Message, + OUString temp = OUSTR("ScriptNameResolverImpl::resolve : problem with getPropertyValue"); + throw RuntimeException(temp.concat(e.Message), Reference<XInterface> ()); } #ifdef _DEBUG @@ -191,6 +192,7 @@ throw (lang::IllegalArgumentException, script::CannotConvertException, RuntimeEx OSL_TRACE("unknown exception thrown by storage %d, failed to match uri",*iter); } #endif + } @@ -279,17 +281,20 @@ ScriptNameResolverImpl::resolveURIFromStorageID(sal_Int16 sid, const Reference< } catch (lang::IllegalArgumentException & iae) { - throw lang::IllegalArgumentException(OUSTR("ScriptRuntimeManager::resolveURIFromStorageID IllegalArgumentException: ")+iae.Message, + OUString temp = OUSTR("ScriptRuntimeManager::resolveURIFromStorageID IllegalArgumentException: "); + throw lang::IllegalArgumentException(temp.concat(iae.Message), Reference<XInterface> (), iae.ArgumentPosition); } catch (RuntimeException & re) { - throw RuntimeException(OUSTR("ScriptRuntimeManager::resolveURIFromStorageID RuntimeException: ")+re.Message, + OUString temp = OUSTR("ScriptRuntimeManager::resolveURIFromStorageID RuntimeException: "); + throw RuntimeException(temp.concat(re.Message), Reference<XInterface> ()); } catch (Exception & e) { - throw RuntimeException(OUSTR("ScriptNameResolverImpl::resolveURIFromStorageID : Unknown Exception caught - RuntimeException rethrown")+e.Message, + OUString temp = OUSTR("ScriptNameResolverImpl::resolveURIFromStorageID : Unknown Exception caught - RuntimeException rethrown"); + throw RuntimeException(temp.concat(e.Message), Reference<XInterface> ()); } #ifdef _DEBUG |