summaryrefslogtreecommitdiff
path: root/TAO/examples/Event_Comm/notifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Event_Comm/notifier.cpp')
-rw-r--r--TAO/examples/Event_Comm/notifier.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/TAO/examples/Event_Comm/notifier.cpp b/TAO/examples/Event_Comm/notifier.cpp
index 8e348b1df5b..774eea4db30 100644
--- a/TAO/examples/Event_Comm/notifier.cpp
+++ b/TAO/examples/Event_Comm/notifier.cpp
@@ -20,31 +20,26 @@ Notifier::handle_signal (int signum, siginfo_t *, ucontext_t *)
void
Notifier::run (void)
{
- ACE_TRY_NEW_ENV
+ try
{
- ns_.run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ns_.run ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
return;
}
- ACE_ENDTRY;
}
Notifier::Notifier (int argc, char *argv[])
{
- ACE_TRY_NEW_ENV
+ try
{
- ns_.init (argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ns_.init (argc, argv);
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Notifier_Server.init failed\n ");
+ ex._tao_print_exception ("Notifier_Server.init failed\n ");
}
- ACE_ENDTRY;
// Register with the ORB's Reactor to receive a signal to shut us
// down.