summaryrefslogtreecommitdiff
path: root/TAO/examples/Logging/Logging_Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Logging/Logging_Service.cpp')
-rw-r--r--TAO/examples/Logging/Logging_Service.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/TAO/examples/Logging/Logging_Service.cpp b/TAO/examples/Logging/Logging_Service.cpp
index 51f5062e56e..9b696ae503d 100644
--- a/TAO/examples/Logging/Logging_Service.cpp
+++ b/TAO/examples/Logging/Logging_Service.cpp
@@ -14,31 +14,26 @@ main (int argc, char *argv[])
Logger_Server log_server;
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
- int ret = log_server.init (argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ int ret = log_server.init (argc, argv);
if (ret == -1)
return 1;
else
{
- log_server.run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ log_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_CHECK_RETURN (-1);
return 0;
}