summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-15 10:44:08 +0200
committerMichael Meeks <michael.meeks@collabora.com>2019-08-05 21:06:51 -0400
commit90258c5001c862cfd03f829d4aab2feac240eef6 (patch)
tree0abc1781eeca085a7eae5b9aa0cf0a41bcd8f6e8 /canvas
parent985223a77d078412e5caacfc2fc06da65d821da4 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_config.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index 6da728e02f2e..70d0ffc80de8 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -26,6 +26,7 @@
#include <comphelper/anytostring.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
#include "dx_config.hxx"
@@ -83,7 +84,7 @@ namespace dxcanvas
}
catch( const uno::Exception& )
{
- SAL_WARN( "canvas", comphelper::anyToString( cppu::getCaughtException() ) );
+ SAL_WARN( "canvas", exceptionToString( cppu::getCaughtException() ) );
}
}
@@ -114,7 +115,7 @@ namespace dxcanvas
}
catch( const uno::Exception& )
{
- SAL_WARN( "canvas", comphelper::anyToString( cppu::getCaughtException() ) );
+ SAL_WARN( "canvas", exceptionToString( cppu::getCaughtException() ) );
}
}