From 183debd7e078d2daef38170afc8542a4e625602c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Feb 2019 10:44:08 +0200 Subject: pretty up logging of exceptions Add exceptionToString() and getCaughtExceptionAsString() methods in tools. Use the new methods in DbgUnhandledException() Add special-case case code for most of the exceptions that contain extra fields, so all of the relevant data ends up in the log Change-Id: I376f6549b4d7bd480202f8bff17a454657c75ece Reviewed-on: https://gerrit.libreoffice.org/67857 Tested-by: Jenkins Reviewed-by: Noel Grandin --- slideshow/source/engine/slidebitmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slideshow/source/engine/slidebitmap.cxx') diff --git a/slideshow/source/engine/slidebitmap.cxx b/slideshow/source/engine/slidebitmap.cxx index 4cf61b727678..4a92633924d6 100644 --- a/slideshow/source/engine/slidebitmap.cxx +++ b/slideshow/source/engine/slidebitmap.cxx @@ -85,7 +85,7 @@ namespace slideshow } catch( uno::Exception& ) { - SAL_WARN( "slideshow", comphelper::anyToString( cppu::getCaughtException() ) ); + SAL_WARN( "slideshow", exceptionToString( cppu::getCaughtException() ) ); return false; } -- cgit