diff options
author | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-03 01:53:46 +0000 |
---|---|---|
committer | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-03 01:53:46 +0000 |
commit | 16a5d14ede4391e7b6d13f145a20c24c90cff3ac (patch) | |
tree | 2ffcff9d230292d220f3a4d862f5edf33840541a /TAO/examples/Event_Comm/Supplier_Input_Handler.cpp | |
parent | 966e325ef7b289cc665a8cbe4dc62c0985e3ca06 (diff) | |
download | ATCD-16a5d14ede4391e7b6d13f145a20c24c90cff3ac.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/examples/Event_Comm/Supplier_Input_Handler.cpp')
-rw-r--r-- | TAO/examples/Event_Comm/Supplier_Input_Handler.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp b/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp index 3b8db05c62b..fba76cd857c 100644 --- a/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp +++ b/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp @@ -17,16 +17,17 @@ Supplier_Input_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask) ACE_OS::fclose (this->fp_); - TRY + TAO_TRY { // Disconnect all the consumers gracefully. - notifier->disconnect ("quit", IT_X); + notifier->disconnect ("quit", TAO_TRY_ENV); + TAO_CHECK_ENV; } - CATCHANY + TAO_CATCHANY { - cerr << IT_X << endl; + TAO_TRY_ENV.print_exception ("Error:Supplier_Input_Handler::handle_close\n "); } - ENDTRY; + TAO_ENDTRY; // Don't execute a callback here otherwise we'll recurse // indefinitely! @@ -113,7 +114,7 @@ Supplier_Input_Handler::handle_input (ACE_HANDLE h) else { // Use the notifier to notify Consumers. - TRY + TAO_TRY { Event_Comm::Event event; @@ -124,13 +125,14 @@ Supplier_Input_Handler::handle_input (ACE_HANDLE h) // reference... event.value_ = ... // Forward <Event> to all <Consumers>. - notifier->push (event, IT_X); + notifier->push (event, TAO_TRY_ENV); + TAO_CHECK_ENV; } - CATCHANY + TAO_CATCHANY { - cerr << "unexpected exception " << IT_X << endl; + TAO_TRY_ENV.print_exception ("Unexpected Error\n"); } - ENDTRY; + TAO_ENDTRY; } return 0; } |