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 /oox | |
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 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 941762e3147e..6a0876f50693 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -99,6 +99,7 @@ #include <svl/zforlist.hxx> #include <svl/numuno.hxx> +#include <tools/diagnose_ex.h> #include <set> #include <unordered_set> @@ -187,9 +188,9 @@ Reference< chart2::data::XLabeledDataSequence > lcl_getCategories( const Referen } } } - catch( const uno::Exception & ex ) + catch( const uno::Exception & ) { - SAL_WARN( "oox", "Exception caught. " << ex); + DBG_UNHANDLED_EXCEPTION("oox"); } return xResult; @@ -234,9 +235,9 @@ bool lcl_isSeriesAttachedToFirstAxis( xProp->getPropertyValue("AttachedAxisIndex") >>= nAxisIndex; bResult = (0==nAxisIndex); } - catch( const uno::Exception & ex ) + catch( const uno::Exception & ) { - SAL_WARN( "oox", "Exception caught. " << ex); + DBG_UNHANDLED_EXCEPTION("oox"); } return bResult; @@ -542,9 +543,9 @@ void ChartExport::InitRangeSegmentationProperties( const Reference< chart2::XCha mbHasCategoryLabels = lcl_hasCategoryLabels( xChartDoc ); } } - catch( const uno::Exception & ex ) + catch( const uno::Exception & ) { - SAL_WARN( "oox", "Exception caught. " << ex); + DBG_UNHANDLED_EXCEPTION("oox"); } } @@ -3230,9 +3231,9 @@ void ChartExport::exportDataPoints( xPropSet = SchXMLSeriesHelper::createOldAPIDataPointPropertySet( xSeries, nElement, getModel() ); } - catch( const uno::Exception & rEx ) + catch( const uno::Exception & ) { - SAL_WARN( "oox", "Exception caught during Export of data point: " << rEx ); + DBG_UNHANDLED_EXCEPTION( "oox", "Exception caught during Export of data point" ); } } else |