Author: hdu
Date: Fri Aug  9 13:31:28 2013
New Revision: 1512298

URL: http://svn.apache.org/r1512298
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/trunk/main/desktop/source/app/app.cxx

Modified: openoffice/trunk/main/desktop/source/app/app.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/desktop/source/app/app.cxx?rev=1512298&r1=1512297&r2=1512298&view=diff
==============================================================================
--- openoffice/trunk/main/desktop/source/app/app.cxx (original)
+++ openoffice/trunk/main/desktop/source/app/app.cxx Fri Aug  9 13:31:28 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


Reply via email to