diff options
Diffstat (limited to 'TAO/examples/Simple/time/server.cpp')
-rw-r--r-- | TAO/examples/Simple/time/server.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/examples/Simple/time/server.cpp b/TAO/examples/Simple/time/server.cpp index d30839e572b..6b710f67f48 100644 --- a/TAO/examples/Simple/time/server.cpp +++ b/TAO/examples/Simple/time/server.cpp @@ -27,17 +27,20 @@ main (int argc, char *argv[]) ACE_TRY_CHECK; } } - ACE_CATCH (CORBA::UserException, userex) + ACE_CATCH (CORBA::SystemException, sysex) { - ACE_PRINT_EXCEPTION (userex,"User Exception in main"); + ACE_UNUSED_ARG (sysex); + ACE_TRY_ENV.print_exception ("System Exception"); return -1; } - ACE_CATCH (CORBA::SystemException, sysex) + ACE_CATCH (CORBA::UserException, userex) { - ACE_PRINT_EXCEPTION (sysex,"System Exception in main"); + ACE_UNUSED_ARG (userex); + ACE_TRY_ENV.print_exception ("User Exception"); return -1; } ACE_ENDTRY; + return 0; } |