summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-02 08:10:14 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-03-02 08:11:03 +0100
commit9330b97595ff899dbea40ced6656f8c39c76c959 (patch)
tree4b6df9543269a40cc41641878f8ea3d64c63e965
parent380b858de9f6aae1ee74d3d8f0f7cf75fb68f207 (diff)
fdo#61564 when WrappedTargetException not in specification, do not throw it!
Change-Id: Id3c995557f320b1d0241f0ef5d94b1c9aeb66528
-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 90a8af52dd72..a902640ecfd9 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -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;
}