diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-02 16:27:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-03 08:13:29 +0200 |
commit | 547b1d054162a73d49a828bed140ab8671da2ff8 (patch) | |
tree | d1e2f14c39440d678ba27cb5bd52ab91e8e499d0 /xmloff | |
parent | 1f40a488fcf95f90fdd18c41ef7041d475cf08a2 (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: I8b5cde993c13e0b7c8c830b1ff698933a6b7cfd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103863
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 5 |
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"); } } } |