summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-13 21:24:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-13 21:26:41 +0000
commit5b7497e5aad80774167a6c1f050aabe429280918 (patch)
tree0e2f97ce0767a9e40992855421c3bf2006feb99b /vcl/workben
parent0b10bac9138fe560f9d108adaa7a875f78dd8ea7 (diff)
coverity#1251600 Uncaught exception
and coverity#1251597 Uncaught exception coverity#1251598 Uncaught exception coverity#1251599 Uncaught exception Change-Id: Ifd14f1db5692a8f3ccd1d9ea45d8f0e16c4b0324
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/vcldemo.cxx21
1 files changed, 17 insertions, 4 deletions
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;
}