diff options
author | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-16 23:15:01 +0000 |
---|---|---|
committer | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-16 23:15:01 +0000 |
commit | 0e196d55d6eed37939484f426bd5ade5c82855df (patch) | |
tree | 51595729406a84c18e812341eff2f0b570ebca47 /TAO/examples | |
parent | 8ca4812a992db3a2eaf356edbe95a8d49c416e62 (diff) | |
download | ATCD-0e196d55d6eed37939484f426bd5ade5c82855df.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/examples')
-rw-r--r-- | TAO/examples/Simple/chat/Broadcaster_i.cpp | 11 | ||||
-rw-r--r-- | TAO/examples/Simple/chat/Broadcaster_i.h | 17 | ||||
-rw-r--r-- | TAO/examples/Simple/chat/Receiver_i.cpp | 6 | ||||
-rw-r--r-- | TAO/examples/Simple/chat/Receiver_i.h | 10 |
4 files changed, 39 insertions, 5 deletions
diff --git a/TAO/examples/Simple/chat/Broadcaster_i.cpp b/TAO/examples/Simple/chat/Broadcaster_i.cpp index 3a9480da0ec..31ee1565565 100644 --- a/TAO/examples/Simple/chat/Broadcaster_i.cpp +++ b/TAO/examples/Simple/chat/Broadcaster_i.cpp @@ -44,6 +44,10 @@ void Broadcaster_i::add (Receiver_ptr receiver, const char *nickname, CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException, + Broadcaster::CannotAdd + )) { Broadcaster_i::Receiver_Data receiver_data; @@ -78,6 +82,10 @@ Broadcaster_i::add (Receiver_ptr receiver, void Broadcaster_i::remove (Receiver_ptr receiver, CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException, + Broadcaster::CannotRemove + )) { Broadcaster_i::Receiver_Data receiver_data_to_remove; @@ -117,6 +125,9 @@ void Broadcaster_i::say (Receiver_ptr receiver, const char *text, CORBA::Environment &T) + ACE_THROW_SPEC (( + CORBA::SystemException + )) { TAO_TRY { diff --git a/TAO/examples/Simple/chat/Broadcaster_i.h b/TAO/examples/Simple/chat/Broadcaster_i.h index 2b4958ef096..fd528d0ad45 100644 --- a/TAO/examples/Simple/chat/Broadcaster_i.h +++ b/TAO/examples/Simple/chat/Broadcaster_i.h @@ -46,16 +46,27 @@ public: virtual void add (Receiver_ptr receiver, const char *nickname, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException, + Broadcaster::CannotAdd + )); // Saves receiver references in a list. virtual void remove (Receiver_ptr receiver, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException, + Broadcaster::CannotRemove + )); // Removes receiver references from the list. virtual void say (Receiver_ptr receiver, const char *text, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException + )); // Called by Broadcaster clients to send messages. public: diff --git a/TAO/examples/Simple/chat/Receiver_i.cpp b/TAO/examples/Simple/chat/Receiver_i.cpp index baebf861cc1..4ceb9e79018 100644 --- a/TAO/examples/Simple/chat/Receiver_i.cpp +++ b/TAO/examples/Simple/chat/Receiver_i.cpp @@ -30,6 +30,9 @@ Receiver_i::~Receiver_i (void) void Receiver_i::message (const char *msg, CORBA::Environment &) + ACE_THROW_SPEC (( + CORBA::SystemException + )) { ACE_DEBUG ((LM_DEBUG, ": %s\n", @@ -38,6 +41,9 @@ Receiver_i::message (const char *msg, void Receiver_i::shutdown (CORBA::Environment &) + ACE_THROW_SPEC (( + CORBA::SystemException + )) { // Instruct the ORB to shutdown. this->orb_->shutdown (); diff --git a/TAO/examples/Simple/chat/Receiver_i.h b/TAO/examples/Simple/chat/Receiver_i.h index c0ec2f98fc2..324abe03ffe 100644 --- a/TAO/examples/Simple/chat/Receiver_i.h +++ b/TAO/examples/Simple/chat/Receiver_i.h @@ -38,10 +38,16 @@ public: // Destructor. virtual void message (const char *msg, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException + )); // Receives a message string. - virtual void shutdown (CORBA::Environment &TAO_TRY_ENV); + virtual void shutdown (CORBA::Environment &TAO_TRY_ENV) + ACE_THROW_SPEC (( + CORBA::SystemException + )); // Called when the chat server is going away. The client // implementation should shutdown the chat client in response to // this. |