Kaydet (Commit) 9330b975 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#61564 when WrappedTargetException not in specification, do not throw it!

Change-Id: Id3c995557f320b1d0241f0ef5d94b1c9aeb66528
üst 380b858d
......@@ -39,6 +39,7 @@
#include "core_resource.hxx"
#include "core_resource.hrc"
#include <comphelper/namedvaluecollection.hxx>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
......@@ -558,9 +559,9 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
{
throw IllegalArgumentException();
}
catch(const WrappedTargetException&)
catch(const WrappedTargetException &e)
{
throw;
throw WrappedTargetRuntimeException(e.Message, e.Context, e.TargetException);
}
return xComp;
}
......
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