diff options
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp index 51a8ec71ebe..65735e280f7 100644 --- a/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp @@ -11,31 +11,27 @@ main (int argc, char *argv[]) ACE_DEBUG ((LM_DEBUG, "\n\tNestea Bookshelf Server\n\n")); - ACE_DECLARE_NEW_CORBA_ENV; - ACE_TRY + try { - int retval = server.init (argc, argv ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + int retval = server.init (argc, argv); if (retval == -1) return -1; else { - server.run (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + server.run (); } } - ACE_CATCH (CORBA::SystemException, sysex) + catch (const CORBA::SystemException& sysex) { - ACE_PRINT_EXCEPTION (sysex, "System Exception"); + sysex._tao_print_exception ("System Exception"); return -1; } - ACE_CATCH (CORBA::UserException, userex) + catch (const CORBA::UserException& userex) { - ACE_PRINT_EXCEPTION (userex, "User Exception"); + userex._tao_print_exception ("User Exception"); return -1; } - ACE_ENDTRY; ACE_DEBUG ((LM_DEBUG, "Nestea Bookshelf Server says goodnight\n")); |