summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:33:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 10:31:43 +0200
commit70accc2904edb5c4aa9b5acb7ff2889a77717b75 (patch)
treef6b8aa6e318694b8fe81b40abcf115e4fe54230f /tools
parentb8775ff8961dbe589799ac7f59427a8e5d07ac72 (diff)
loplugin:logexceptionnicely in toolkit..unoxml
Change-Id: I0a3126545f9ef98640f6dd166290e9b9e91b8355 Reviewed-on: https://gerrit.libreoffice.org/74244 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index fdfd7259d3cf..9b9419599b7d 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -41,6 +41,7 @@
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/ucb/MissingPropertiesException.hpp>
#include <com/sun/star/ucb/NameClashException.hpp>
+#include <com/sun/star/ucb/InteractiveIOException.hpp>
#include <com/sun/star/util/MalformedNumberFormatException.hpp>
#include <com/sun/star/xml/dom/DOMException.hpp>
#include <com/sun/star/xml/sax/SAXException.hpp>
@@ -384,6 +385,14 @@ OString exceptionToString(const css::uno::Any & caught)
sMessage += OString::number( specialized.ColumnNumber );
}
}
+ {
+ css::ucb::InteractiveIOException specialized;
+ if ( caught >>= specialized )
+ {
+ sMessage += " Code: ";
+ sMessage += OString::number( static_cast<sal_Int32>(specialized.Code) );
+ }
+ }
return sMessage;
}