summaryrefslogtreecommitdiff
path: root/chart2/source/tools/DataSeriesHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 16:20:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-09 08:46:34 +0200
commit48fbfe38f60de731ff8bec0372179bedd6670af4 (patch)
tree2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /chart2/source/tools/DataSeriesHelper.cxx
parent115a8539038ecdd5e496fb6c84101c5b14d11068 (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 'chart2/source/tools/DataSeriesHelper.cxx')
-rw-r--r--chart2/source/tools/DataSeriesHelper.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx
index 7a4d4c46a246..59103d56c082 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -37,6 +37,7 @@
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <rtl/ustrbuf.hxx>
+#include <tools/diagnose_ex.h>
#include <algorithm>
#include <iterator>
@@ -408,9 +409,9 @@ void setStackModeAtSeries(
aAxisIndexSet.insert(nAxisIndex);
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
@@ -455,9 +456,9 @@ sal_Int32 getAttachedAxisIndex( const Reference< chart2::XDataSeries > & xSeries
xProp->getPropertyValue( "AttachedAxisIndex" ) >>= nRet;
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
return nRet;
}
@@ -478,9 +479,9 @@ sal_Int32 getNumberFormatKeyFromAxis(
if( xAxisProp.is())
xAxisProp->getPropertyValue(CHART_UNONAME_NUMFMT) >>= nResult;
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
return nResult;
@@ -525,9 +526,9 @@ void deleteSeries(
xSeriesCnt->setDataSeries( comphelper::containerToSequence( aSeries ));
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}