summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-02 08:10:14 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-12 15:58:37 +0000
commit6b26441f4b01f4e01390b9a5b4710d0932751a93 (patch)
tree3e0a6fb835f7b4fbce81f1d827708dedfdb2f6b5 /dbaccess
parent775c3ddd47e0619a7f0ebed6dbcba3d5b41a708e (diff)
fdo#61564 when WrappedTargetException not in specification, do not throw it!
Change-Id: Id3c995557f320b1d0241f0ef5d94b1c9aeb66528 Reviewed-on: https://gerrit.libreoffice.org/2684 Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/documentcontainer.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index 54cda9269439..8b8116a400de 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -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;
}