diff options
Diffstat (limited to 'forms/source/xforms/submission.cxx')
-rw-r--r-- | forms/source/xforms/submission.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 3757378c663d..08e04b8b2a33 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -45,6 +45,7 @@ #include <com/sun/star/task/XInteractionContinuation.hpp> #include <com/sun/star/xforms/InvalidDataOnSubmitException.hpp> #include <com/sun/star/frame/XFrame.hpp> +#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/typeprovider.hxx> #include <comphelper/propertysetinfo.hxx> #include <comphelper/interaction.hxx> @@ -469,12 +470,13 @@ void SAL_CALL Submission::submitWithInteraction( // allowed to leave throw; } - catch( const Exception& e ) + catch( const Exception& ) { + css::uno::Any anyEx = cppu::getCaughtException(); // exception caught: re-throw as wrapped target exception throw WrappedTargetException( lcl_message( sID, " due to exception being thrown" ), - *this, makeAny( e ) ); + *this, anyEx ); } if( !bResult ) |