desktop/source/app/app.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
New commits: commit 977a2f14dbb23a8ff1281e799f0c0af43aa2fb52 Author: Herbert Dürr <h...@apache.org> Date: Fri Aug 9 13:31:28 2013 +0000 #i122991# provide some details about fatal exceptions in the desktop app In the desktop application the FatalError() facility provides a dialog with copy+pasteable text that helps to communicate details important for the understanding of such critical bugs. (cherry picked from commit 0881e04dda51387318b7a91170fc485a69f98a05) diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 7080b57..c4e9729 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1730,6 +1730,21 @@ int Desktop::Main() OfficeIPCThread::SetDowning(); FatalError( MakeStartupErrorMessage(exAnyCfg.Message) ); } + catch( const ::com::sun::star::uno::Exception& exUNO) + { + OfficeIPCThread::SetDowning(); + FatalError( exUNO.Message); + } + catch( const std::exception& exSTD) + { + OfficeIPCThread::SetDowning(); + FatalError( OUString::createFromAscii( exSTD.what())); + } + catch( ...) + { + OfficeIPCThread::SetDowning(); + FatalError( OUString(RTL_CONSTASCII_USTRINGPARAM( "Caught Unknown Exception: Aborting!"))); + } } else {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits