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 /basic | |
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 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 77ce160665d7..3e4808e25453 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -913,7 +913,7 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, "basic", "couldn't open sub storage for library \"" << rLib.aName << "\". Exception: " - << comphelper::anyToString(aError)); + << exceptionToString(aError)); #endif } } @@ -1943,7 +1943,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto "basic", "couldn't create sub storage for library \"" << rLib.aName << "\". Exception: " - << comphelper::anyToString(aError)); + << exceptionToString(aError)); throw; } #endif @@ -2353,8 +2353,7 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) SAL_WARN( "basic", "couldn't open sub storage for library \"" << Name - << "\". Exception: " - << comphelper::anyToString(aError)); + << "\". Exception: " << exceptionToString(aError)); throw; } #endif |