From 5b7497e5aad80774167a6c1f050aabe429280918 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 13 Nov 2014 21:24:46 +0000 Subject: coverity#1251600 Uncaught exception and coverity#1251597 Uncaught exception coverity#1251598 Uncaught exception coverity#1251599 Uncaught exception Change-Id: Ifd14f1db5692a8f3ccd1d9ea45d8f0e16c4b0324 --- vcl/workben/vcldemo.cxx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'vcl/workben/vcldemo.cxx') diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 46538cb732bc..e56d95c9d393 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -730,10 +730,23 @@ public: virtual int Main() SAL_OVERRIDE { - DemoWin aMainWin; - aMainWin.SetText( "Interactive VCL demo" ); - aMainWin.Show(); - Application::Execute(); + try + { + DemoWin aMainWin; + aMainWin.SetText( "Interactive VCL demo" ); + aMainWin.Show(); + Application::Execute(); + } + catch (const css::uno::Exception& e) + { + SAL_WARN("vcl.app", "Fatal exception: " << e.Message); + return 1; + } + catch (const std::exception& e) + { + SAL_WARN("vcl.app", "Fatal exception: " << e.what()); + return 1; + } return 0; } -- cgit