summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-08-09 13:31:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-08-09 20:47:24 +0100
commit977a2f14dbb23a8ff1281e799f0c0af43aa2fb52 (patch)
treea30cfbdd5eb7cf9aa8627c613e71e4815c502dde
parentf41e7c704898fa0e86d6d128f5bd28f37c081e92 (diff)
#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)
-rw-r--r--desktop/source/app/app.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 7080b57efc54..c4e972909099 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
{