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 /basic/source/uno/namecont.cxx | |
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 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 95a05bca652c..3f5840b51b06 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -908,12 +908,9 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, catch(const uno::Exception& ) { #if OSL_DEBUG_LEVEL > 0 - Any aError( ::cppu::getCaughtException() ); - SAL_WARN( + TOOLS_WARN_EXCEPTION( "basic", - "couldn't open sub storage for library \"" - << rLib.aName << "\". Exception: " - << exceptionToString(aError)); + "couldn't open sub storage for library \"" << rLib.aName << "\""); #endif } } @@ -1938,12 +1935,9 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch(const uno::Exception& ) { - Any aError( ::cppu::getCaughtException() ); - SAL_WARN( + TOOLS_WARN_EXCEPTION( "basic", - "couldn't create sub storage for library \"" - << rLib.aName << "\". Exception: " - << exceptionToString(aError)); + "couldn't create sub storage for library \"" << rLib.aName << "\""); throw; } #endif @@ -2349,11 +2343,9 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) } catch(const uno::Exception& ) { - Any aError( ::cppu::getCaughtException() ); - SAL_WARN( + TOOLS_WARN_EXCEPTION( "basic", - "couldn't open sub storage for library \"" << Name - << "\". Exception: " << exceptionToString(aError)); + "couldn't open sub storage for library \"" << Name << "\""); throw; } #endif |