Kaydet (Commit) 6b26441f authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Fridrich Strba

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

Change-Id: Id3c995557f320b1d0241f0ef5d94b1c9aeb66528
Reviewed-on: https://gerrit.libreoffice.org/2684Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 775c3ddd
......@@ -38,6 +38,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>
......@@ -557,9 +558,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