summaryrefslogtreecommitdiff
path: root/examples/Simple/time/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Simple/time/server.cpp')
-rw-r--r--examples/Simple/time/server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/Simple/time/server.cpp b/examples/Simple/time/server.cpp
index ac8368fbdbf..7a19abd727f 100644
--- a/examples/Simple/time/server.cpp
+++ b/examples/Simple/time/server.cpp
@@ -33,6 +33,11 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
sysex._tao_print_exception ("System Exception in main");
return -1;
}
+ catch (const ::CORBA::Exception &e)
+ {
+ e._tao_print_exception ("CORBA exception in main");
+ return 1;
+ }
return 0;
}