summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/chat/client.cpp')
-rw-r--r--TAO/examples/Simple/chat/client.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/TAO/examples/Simple/chat/client.cpp b/TAO/examples/Simple/chat/client.cpp
index 7caf6e595a0..fb6f17aff2f 100644
--- a/TAO/examples/Simple/chat/client.cpp
+++ b/TAO/examples/Simple/chat/client.cpp
@@ -21,7 +21,7 @@
int
main (int argc, char *argv[])
{
- ACE_TRY_NEW_ENV
+ TAO_TRY
{
Client_i client_i;
@@ -29,15 +29,14 @@ main (int argc, char *argv[])
|| client_i.run () == -1)
return -1;
- ACE_TRY_CHECK;
+ TAO_CHECK_ENV;
}
- ACE_CATCHANY
+ TAO_CATCHANY
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "client::main\t\n");
+ TAO_TRY_ENV.print_exception ("client::main\t\n");
return -1;
}
- ACE_ENDTRY;
+ TAO_ENDTRY;
return 0;
}