summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-02-05 12:52:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-02-05 13:08:22 +0100
commit3d23c626e685f8ab3ee1780f10f368ee8ede61d0 (patch)
tree28a66bd407d93fa93893f240e4ce76c4675da68d /desktop/source
parentdf42c435f62528c1b7ae7ca3b8f8d2afa7196045 (diff)
Avoid a SAL_WARN caused by IllegalArgumentEx now being a RuntimeEx
Change-Id: I6fad4e840cf47b4d41592ff179f66943a4469760
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 429a6f71ce52..07cadb6a4f42 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -669,6 +669,15 @@ void Package::processPackage_impl(
xCmdEnv );
}
}
+ catch (lang::IllegalArgumentException &) {
+ Any e(cppu::getCaughtException());
+ throw deployment::DeploymentException(
+ ((doRegisterPackage
+ ? getResourceString(RID_STR_ERROR_WHILE_REGISTERING)
+ : getResourceString(RID_STR_ERROR_WHILE_REVOKING))
+ + getDisplayName()),
+ static_cast< OWeakObject * >(this), e);
+ }
catch (const RuntimeException &e) {
SAL_WARN(
"desktop.deployment",