You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/08/13 15:53:00 UTC
svn commit: r1513494 -
/openoffice/branches/AOO401/main/desktop/source/app/app.cxx
Author: hdu
Date: Tue Aug 13 13:52:59 2013
New Revision: 1513494
URL: http://svn.apache.org/r1513494
Log:
#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.
Modified:
openoffice/branches/AOO401/main/desktop/source/app/app.cxx
Modified: openoffice/branches/AOO401/main/desktop/source/app/app.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/AOO401/main/desktop/source/app/app.cxx?rev=1513494&r1=1513493&r2=1513494&view=diff
==============================================================================
--- openoffice/branches/AOO401/main/desktop/source/app/app.cxx (original)
+++ openoffice/branches/AOO401/main/desktop/source/app/app.cxx Tue Aug 13 13:52:59 2013
@@ -2235,6 +2235,21 @@ void 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!")));
+ }
}
// CAUTION: you do not necessarily get here e.g. on the Mac.
// please put all deinitialization code into doShutdown