summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-12-26 09:22:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-26 19:08:42 +0100
commitdf773dc769f6a0d676673ac9b5fc0e8132e435e6 (patch)
treefe744b9d76e5f26282409fbe3b117e24659de7c0 /xmloff/source
parent32b9d07baa0cf6907f14ccb9aa068b51d95eefaa (diff)
use more TOOLS_WARN_EXCEPTION
so we get more useful log messages when stuff goes wrong Change-Id: Ia55db7ab1a4d79b0f281673fbbb06c61745fa89e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85829 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/forms/elementexport.cxx9
-rw-r--r--xmloff/source/forms/formcellbinding.cxx9
2 files changed, 8 insertions, 10 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index 12e57e4228f9..caa11f84939e 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -1764,8 +1764,7 @@ namespace xmloff
}
catch( const Exception& )
{
- DBG_UNHANDLED_EXCEPTION("xmloff.forms");
- OSL_FAIL( "OControlExport::exportCellBindingAttributes: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff.forms", "OControlExport::exportCellBindingAttributes" );
}
}
@@ -1806,8 +1805,7 @@ namespace xmloff
}
catch( const Exception& )
{
- DBG_UNHANDLED_EXCEPTION("xmloff.forms");
- OSL_FAIL( "OControlExport::exportCellListSourceRange: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff.forms", "OControlExport::exportCellListSourceRange" );
}
}
@@ -1879,8 +1877,7 @@ namespace xmloff
}
catch( const Exception& )
{
- DBG_UNHANDLED_EXCEPTION("xmloff.forms");
- OSL_FAIL( "OColumnExport::controlHasActiveDataBinding: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff.forms", "OColumnExport::controlHasActiveDataBinding" );
}
return false;
diff --git a/xmloff/source/forms/formcellbinding.cxx b/xmloff/source/forms/formcellbinding.cxx
index cc03bf95009b..a32239ee551b 100644
--- a/xmloff/source/forms/formcellbinding.cxx
+++ b/xmloff/source/forms/formcellbinding.cxx
@@ -28,6 +28,7 @@
#include <com/sun/star/beans/NamedValue.hpp>
#include "strings.hxx"
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
#include <algorithm>
@@ -196,7 +197,7 @@ OUString FormCellBindingHelper::getStringAddressFromCellBinding( const Reference
}
catch( const Exception& )
{
- OSL_FAIL( "FormCellBindingHelper::getStringAddressFromCellBinding: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff", "FormCellBindingHelper::getStringAddressFromCellBinding" );
}
return sAddress;
@@ -224,7 +225,7 @@ OUString FormCellBindingHelper::getStringAddressFromCellListSource( const Refere
}
catch( const Exception& )
{
- OSL_FAIL( "FormCellBindingHelper::getStringAddressFromCellListSource: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff", "FormCellBindingHelper::getStringAddressFromCellListSource" );
}
return sAddress;
@@ -251,7 +252,7 @@ bool FormCellBindingHelper::isSpreadsheetDocumentWhichSupplies( const Reference<
}
catch( const Exception& )
{
- OSL_FAIL( "FormCellBindingHelper::isSpreadsheetDocumentWhichSupplies: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff", "FormCellBindingHelper::isSpreadsheetDocumentWhichSupplies" );
}
return bYesItIs;
@@ -421,7 +422,7 @@ bool FormCellBindingHelper::doConvertAddressRepresentations( const OUString& _rI
}
catch( const Exception& )
{
- OSL_FAIL( "FormCellBindingHelper::doConvertAddressRepresentations: caught an exception!" );
+ TOOLS_WARN_EXCEPTION( "xmloff", "FormCellBindingHelper::doConvertAddressRepresentations" );
}
}