diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-05 16:20:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-09 08:46:34 +0200 |
commit | 48fbfe38f60de731ff8bec0372179bedd6670af4 (patch) | |
tree | 2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /starmath | |
parent | 115a8539038ecdd5e496fb6c84101c5b14d11068 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 5 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 5 | ||||
-rw-r--r-- | starmath/source/unofilter.cxx | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 61827cefa36d..14964b100260 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -48,6 +48,7 @@ #include <xmloff/attrlist.hxx> #include <comphelper/genericpropertyset.hxx> #include <comphelper/servicehelper.hxx> +#include <tools/diagnose_ex.h> #include <memory> #include <stack> @@ -310,9 +311,9 @@ bool SmXMLExportWrapper::WriteThroughComponent( xStream = xStorage->openStreamElement( sStreamName, embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE ); } - catch ( const uno::Exception& rEx ) + catch ( const uno::Exception& ) { - SAL_WARN("starmath", "Can't create output stream in package: " << rEx ); + DBG_UNHANDLED_EXCEPTION("starmath", "Can't create output stream in package" ); return false; } diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index a531412cf573..6142db4a3ec4 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -58,6 +58,7 @@ one go*/ #include <xmloff/xmlmetai.hxx> #include <svx/dialmgr.hxx> #include <svx/strings.hrc> +#include <tools/diagnose_ex.h> #include <memory> @@ -3175,9 +3176,9 @@ void SmXMLImport::SetConfigurationSettings(const Sequence<PropertyValue>& aConfP { // dealing with read-only properties here. Nothing to do... } - catch (const Exception& rEx) + catch (const Exception&) { - SAL_WARN("starmath", "SmXMLImport::SetConfigurationSettings: Exception: " << rEx ); + DBG_UNHANDLED_EXCEPTION("starmath"); } } diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx index 4a1d329731d3..45f390d94613 100644 --- a/starmath/source/unofilter.cxx +++ b/starmath/source/unofilter.cxx @@ -15,6 +15,7 @@ #include <document.hxx> #include "mathtype.hxx" #include <unomodel.hxx> +#include <tools/diagnose_ex.h> using namespace ::com::sun::star; @@ -80,9 +81,9 @@ sal_Bool MathTypeFilter::filter(const uno::Sequence<beans::PropertyValue>& rDesc } } } - catch (const uno::Exception& rException) + catch (const uno::Exception&) { - SAL_WARN("starmath", "Exception caught: " << rException); + DBG_UNHANDLED_EXCEPTION("starmath"); } return bSuccess; } |