summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:56:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 13:31:26 +0200
commit889dc7bffa02236bf2ad56b382997771f0fcf3c6 (patch)
treee7fc2c8748972bb1ed4acb98fd92ff08a8670f7b /linguistic
parent9a97a26511584f41c3753fa9536e1c4a8dce637a (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 'linguistic')
-rw-r--r--linguistic/source/convdiclist.cxx7
-rw-r--r--linguistic/source/gciterator.cxx6
2 files changed, 3 insertions, 10 deletions
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index da4236dc610c..f9d46bc03f7f 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -266,14 +266,9 @@ void SAL_CALL ConvDicNameContainer::removeByName( const OUString& rName )
comphelper::getProcessComponentContext() );
aCnt.executeCommand( "delete", makeAny( true ) );
}
- catch( css::ucb::CommandAbortedException& )
- {
- SAL_WARN( "linguistic", "HangulHanjaOptionsDialog::OkHdl(): CommandAbortedException" );
- }
catch( ... )
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN( "linguistic", "HangulHanjaOptionsDialog::OkHdl(): Any other exception " << exceptionToString(ex) );
+ TOOLS_WARN_EXCEPTION( "linguistic", "HangulHanjaOptionsDialog::OkHdl()" );
}
}
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 5817b745da78..247f430d9c06 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -943,9 +943,8 @@ void SAL_CALL GrammarCheckingIterator::processLinguServiceEvent(
}
catch (const ::uno::Exception &)
{
- css::uno::Any ex( cppu::getCaughtException() );
// ignore
- SAL_WARN("linguistic", "processLinguServiceEvent: exception: " << exceptionToString(ex));
+ TOOLS_WARN_EXCEPTION("linguistic", "processLinguServiceEvent");
}
}
}
@@ -1107,8 +1106,7 @@ void GrammarCheckingIterator::GetConfiguredGCSvcs_Impl()
}
catch (uno::Exception const &)
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN( "linguistic", "exception caught. Failed to get configured services " << exceptionToString(ex) );
+ TOOLS_WARN_EXCEPTION( "linguistic", "exception caught. Failed to get configured services" );
}
{