From 48fbfe38f60de731ff8bec0372179bedd6670af4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Apr 2018 16:20:13 +0200 Subject: use more DBG_UNHANDLED_EXCEPTION so we get nice logs of the exception dynamic type for UNO exceptions. Change-Id: Ic0b10dc14d354a2c9a0591b3a51d2f1640d54bdb Reviewed-on: https://gerrit.libreoffice.org/52465 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/awt/vclxtoolkit.cxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 7e528ef1f94d..57f18a22ad45 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -121,6 +121,7 @@ #endif #include #include +#include #include #include #include @@ -1689,10 +1690,10 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::createSystemChild( con { pChildWindow.reset( VclPtr::Create( &aParentData ) ); } - catch ( const css::uno::RuntimeException & rEx ) + catch ( const css::uno::RuntimeException & ) { // system child window could not be created - SAL_WARN("toolkit", "caught " << rEx); + DBG_UNHANDLED_EXCEPTION("toolkit"); pChildWindow.clear(); } } @@ -2085,9 +2086,9 @@ void VCLXToolkit::callTopWindowListeners( { (xListener.get()->*pFn)(aAwtEvent); } - catch (const css::uno::RuntimeException & rEx) + catch (const css::uno::RuntimeException &) { - SAL_WARN("toolkit", "caught " << rEx); + DBG_UNHANDLED_EXCEPTION("toolkit"); } } } @@ -2130,9 +2131,9 @@ bool VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent, : xHandler->keyReleased(aAwtEvent)) return true; } - catch (const css::uno::RuntimeException & rEx) + catch (const css::uno::RuntimeException &) { - SAL_WARN("toolkit", "caught " << rEx); + DBG_UNHANDLED_EXCEPTION("toolkit"); } } } @@ -2176,9 +2177,9 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent, bGained ? xListener->focusGained(aAwtEvent) : xListener->focusLost(aAwtEvent); } - catch (const css::uno::RuntimeException & rEx) + catch (const css::uno::RuntimeException &) { - SAL_WARN("toolkit", "caught " << rEx); + DBG_UNHANDLED_EXCEPTION("toolkit"); } } } -- cgit