Kaydet (Commit) 30a2355f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve exception message

Change-Id: Idce206e0ddebbc9398297f15999579a71f9401c9
üst f14cedc4
...@@ -635,10 +635,10 @@ beans::Optional< beans::Ambiguous<sal_Bool> > Package::isRegistered( ...@@ -635,10 +635,10 @@ beans::Optional< beans::Ambiguous<sal_Bool> > Package::isRegistered(
catch (const deployment::DeploymentException &) { catch (const deployment::DeploymentException &) {
throw; throw;
} }
catch (const Exception &) { catch (const Exception & e) {
Any exc( ::cppu::getCaughtException() ); Any exc( ::cppu::getCaughtException() );
throw deployment::DeploymentException( throw deployment::DeploymentException(
"unexpected exception occurred!", "unexpected " + exc.getValueTypeName() + ": " + e.Message,
static_cast<OWeakObject *>(this), exc ); static_cast<OWeakObject *>(this), exc );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment