summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx8
-rw-r--r--xmloff/source/text/txtvfldi.cxx5
2 files changed, 7 insertions, 6 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 692a7e5e172e..574fa0bd8fae 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -425,7 +425,7 @@ void SchXMLChartContext::StartElement( const uno::Reference< xml::sax::XAttribut
}
catch(const uno::Exception&)
{
- SAL_WARN("xmloff.chart", "Exception during import SchXMLChartContext::StartElement" );
+ TOOLS_WARN_EXCEPTION("xmloff.chart", "Exception during import SchXMLChartContext::StartElement" );
}
}
}
@@ -844,7 +844,7 @@ void SchXMLChartContext::EndElement()
catch(const uno::Exception&)
{
//try to fallback to internal data
- SAL_WARN("xmloff.chart", "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" );
+ TOOLS_WARN_EXCEPTION("xmloff.chart", "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" );
if(!bHasOwnData)
{
bHasOwnData = true;
@@ -859,7 +859,7 @@ void SchXMLChartContext::EndElement()
}
catch(const uno::Exception&)
{
- SAL_WARN("xmloff.chart", "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" );
+ TOOLS_WARN_EXCEPTION("xmloff.chart", "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" );
}
}
}
@@ -1015,7 +1015,7 @@ void SchXMLChartContext::MergeSeriesForStockChart()
}
catch(const uno::Exception&)
{
- SAL_WARN("xmloff.chart", "Exception while merging series for stock chart" );
+ TOOLS_WARN_EXCEPTION("xmloff.chart", "Exception while merging series for stock chart" );
}
}
diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx
index ed635d9a51c8..76ac17fa6f33 100644
--- a/xmloff/source/text/txtvfldi.cxx
+++ b/xmloff/source/text/txtvfldi.cxx
@@ -49,6 +49,7 @@
#include <sal/log.hxx>
#include <tools/debug.hxx>
+#include <tools/diagnose_ex.h>
// service names
@@ -1039,9 +1040,9 @@ void XMLDatabaseDisplayImportContext::EndElement()
// success!
return;
}
- catch (const lang::IllegalArgumentException& rException)
+ catch (const lang::IllegalArgumentException&)
{
- SAL_WARN("xmloff.text", "Failed to insert text content: " << rException.Message);
+ TOOLS_WARN_EXCEPTION("xmloff.text", "Failed to insert text content");
}
}
}