diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 10:44:08 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-05 21:06:51 -0400 |
commit | 90258c5001c862cfd03f829d4aab2feac240eef6 (patch) | |
tree | 0abc1781eeca085a7eae5b9aa0cf0a41bcd8f6e8 /sd/source/ui/remotecontrol/Receiver.cxx | |
parent | 985223a77d078412e5caacfc2fc06da65d821da4 (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 'sd/source/ui/remotecontrol/Receiver.cxx')
-rw-r--r-- | sd/source/ui/remotecontrol/Receiver.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx index 042a63006f78..04b50f9a3936 100644 --- a/sd/source/ui/remotecontrol/Receiver.cxx +++ b/sd/source/ui/remotecontrol/Receiver.cxx @@ -22,6 +22,8 @@ #include <rtl/strbuf.hxx> #include <sal/log.hxx> #include <com/sun/star/beans/PropertyValue.hpp> +#include <vcl/svapp.hxx> +#include <tools/diagnose_ex.h> using namespace sd; using namespace ::osl; @@ -146,7 +148,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) catch ( Exception& ) { SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerPosition(), " - "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + "exception caught: " << exceptionToString( cppu::getCaughtException() )); } if (xSlideShow.is()) try @@ -160,7 +162,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) catch ( Exception& ) { SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerMode(), " - "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + "exception caught: " << exceptionToString( cppu::getCaughtException() )); } SAL_INFO( "sdremote", "Pointer started, we display the pointer on screen" ); @@ -179,7 +181,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) catch ( Exception& ) { SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerMode(), " - "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + "exception caught: " << exceptionToString( cppu::getCaughtException() )); } SAL_INFO( "sdremote", "Pointer dismissed, we hide the pointer on screen" ); @@ -204,7 +206,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) catch ( Exception& ) { SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerPosition(), " - "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + "exception caught: " << exceptionToString( cppu::getCaughtException() )); } } else if ( aCommand[0] == "presentation_resume" ) |