summaryrefslogtreecommitdiff
path: root/chart2/source/controller/itemsetwrapper
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/controller/itemsetwrapper
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/controller/itemsetwrapper')
-rw-r--r--chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx9
-rw-r--r--chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx9
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx9
-rw-r--r--chart2/source/controller/itemsetwrapper/ItemConverter.cxx9
-rw-r--r--chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx5
-rw-r--r--chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx5
-rw-r--r--chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx13
7 files changed, 33 insertions, 26 deletions
diff --git a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
index 062b4b173b3e..39ed990d3141 100644
--- a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/chart2/XFormattedString.hpp>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
@@ -276,9 +277,9 @@ void CharacterPropertyItemConverter::FillSpecialItem(
rOutItemSet.Put( aItem );
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
break;
@@ -535,9 +536,9 @@ bool CharacterPropertyItemConverter::ApplySpecialItem(
}
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
break;
diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
index 3c81e03bfa62..1374c4c4f2c7 100644
--- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
@@ -37,6 +37,7 @@
#include <com/sun/star/chart2/XInternalDataProvider.hpp>
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <com/sun/star/lang/XServiceName.hpp>
+#include <tools/diagnose_ex.h>
#include <functional>
#include <algorithm>
@@ -58,9 +59,9 @@ void lcl_getErrorValues( const uno::Reference< beans::XPropertySet > & xErrorBar
xErrorBarProp->getPropertyValue( "PositiveError" ) >>= rOutPosError;
xErrorBarProp->getPropertyValue( "NegativeError" ) >>= rOutNegError;
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
@@ -76,9 +77,9 @@ void lcl_getErrorIndicatorValues(
xErrorBarProp->getPropertyValue( "ShowPositiveError" ) >>= rOutShowPosError;
xErrorBarProp->getPropertyValue( "ShowNegativeError" ) >>= rOutShowNegError;
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index df440bdf8ce6..906318a6bdd6 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -41,6 +41,7 @@
#include <com/sun/star/chart2/FillBitmap.hpp>
#include <com/sun/star/awt/Gradient.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
@@ -255,9 +256,9 @@ void GraphicPropertyItemConverter::FillSpecialItem(
}
}
}
- catch( const beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
break;
@@ -502,9 +503,9 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
}
}
}
- catch( const beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
break;
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
index 72de9427016f..cf1a57b37a19 100644
--- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
@@ -25,6 +25,7 @@
#include <svl/itemiter.hxx>
#include <svl/whiter.hxx>
#include <svx/svxids.hrc>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
@@ -119,9 +120,9 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
delete pItem;
SAL_WARN( "chart2", ex << " - unknown Property: " << aProperty.first);
}
- catch( const uno::Exception &ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
}
@@ -131,9 +132,9 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
{
FillSpecialItem( nWhich, rOutItemSet );
}
- catch( const uno::Exception &ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
}
diff --git a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
index 80e42df5c7fb..0c6bbca33d59 100644
--- a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
@@ -28,6 +28,7 @@
#include <svl/intitem.hxx>
#include <svl/eitem.hxx>
+#include <tools/diagnose_ex.h>
#include <functional>
#include <algorithm>
@@ -150,9 +151,9 @@ bool LegendItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSe
bChanged = true;
}
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
}
diff --git a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
index 1d9324e6bcb9..4c7c9071e251 100644
--- a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
@@ -36,6 +36,7 @@
#include <svl/intitem.hxx>
#include <svl/ilstitem.hxx>
#include <rtl/math.hxx>
+#include <tools/diagnose_ex.h>
#include <functional>
#include <algorithm>
@@ -155,9 +156,9 @@ SeriesOptionsItemConverter::SeriesOptionsItemConverter(
}
}
}
- catch( const uno::Exception &ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
index 0a1c5d678510..f74bf202a370 100644
--- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
@@ -39,6 +39,7 @@
#include <com/sun/star/chart2/XInternalDataProvider.hpp>
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <com/sun/star/lang/XServiceName.hpp>
+#include <tools/diagnose_ex.h>
#include <functional>
#include <algorithm>
@@ -59,9 +60,9 @@ uno::Reference< beans::XPropertySet > lcl_GetErrorBar(
{
( xProp->getPropertyValue( bYError ? OUString(CHART_UNONAME_ERRORBAR_Y) : OUString(CHART_UNONAME_ERRORBAR_X) ) >>= xResult );
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
return xResult;
@@ -83,9 +84,9 @@ void lcl_getErrorValues( const uno::Reference< beans::XPropertySet > & xErrorBar
xErrorBarProp->getPropertyValue( "PositiveError" ) >>= rOutPosError;
xErrorBarProp->getPropertyValue( "NegativeError" ) >>= rOutNegError;
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}
@@ -101,9 +102,9 @@ void lcl_getErrorIndicatorValues(
xErrorBarProp->getPropertyValue( "ShowPositiveError" ) >>= rOutShowPosError;
xErrorBarProp->getPropertyValue( "ShowNegativeError" ) >>= rOutShowNegError;
}
- catch( const uno::Exception & ex )
+ catch( const uno::Exception & )
{
- SAL_WARN("chart2", "Exception caught. " << ex );
+ DBG_UNHANDLED_EXCEPTION("chart2");
}
}