diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 15:56:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-16 13:31:26 +0200 |
commit | 889dc7bffa02236bf2ad56b382997771f0fcf3c6 (patch) | |
tree | e7fc2c8748972bb1ed4acb98fd92ff08a8670f7b /io | |
parent | 9a97a26511584f41c3753fa9536e1c4a8dce637a (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: Ic21ea11ff106e0732bb8fa600ef39a549d7bda86
Reviewed-on: https://gerrit.libreoffice.org/77569
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/stm/opump.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx index 99e77fa496d5..fc6ba14c8488 100644 --- a/io/source/stm/opump.cxx +++ b/io/source/stm/opump.cxx @@ -125,8 +125,7 @@ void Pump::fireError( const Any & exception ) } catch ( const RuntimeException & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners" << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners"); } } } @@ -154,8 +153,7 @@ void Pump::fireClose() } catch ( const RuntimeException & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners" << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners"); } } } @@ -172,8 +170,7 @@ void Pump::fireStarted() } catch ( const RuntimeException & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners" << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners"); } } } @@ -189,8 +186,7 @@ void Pump::fireTerminated() } catch ( const RuntimeException & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners" << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners"); } } } @@ -292,8 +288,7 @@ void Pump::run() { // we are the last on the stack. // this is to avoid crashing the program, when e.g. a bridge crashes - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners" << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("io.streams","com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners"); } } |