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

Improve error message

Change-Id: Icdbb60525f858a2a0002a5e6f599eb6a6954a9dd
üst e8920c60
......@@ -436,15 +436,12 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
catch (const RuntimeException &) {
throw;
}
catch (const Exception &) {
catch (const Exception & e) {
Any exc( ::cppu::getCaughtException() );
::rtl::OUStringBuffer buf;
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("[context=\"") );
buf.append( context );
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(
"\"] caught unexpected exception!") );
throw lang::WrappedTargetRuntimeException(
buf.makeStringAndClear(), Reference<XInterface>(), exc );
("[context=\"" + context + "\"] caught unexpected "
+ exc.getValueType().getTypeName() + ": " + e.Message),
Reference<XInterface>(), 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