summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp')
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp
index f1594dd2f56..ca076d4782c 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.cpp
@@ -38,37 +38,32 @@ void
Simple::remove_member (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_TRY
+ try
{
PortableGroup::Location location (1);
location.length (1);
location[0].id = CORBA::string_dup (this->location_);
this->lm_->remove_member (this->object_group_.in (),
- location
- ACE_ENV_ARG_PARAMETER);
+ location);
ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Removed Member at Location <%s>\n",
this->location_));
}
- ACE_CATCH (PortableGroup::ObjectNotFound, ex)
+ catch (const PortableGroup::ObjectNotFound& ex)
{
- ACE_PRINT_EXCEPTION (ex,
- "Caught exception in remove_member");
- ACE_TRY_THROW (CORBA::INTERNAL ());
+ ex._tao_print_exception ("Caught exception in remove_member");
+ throw CORBA::INTERNAL ();
}
- ACE_CATCH (PortableGroup::MemberNotFound, ex)
+ catch (const PortableGroup::MemberNotFound& ex)
{
- ACE_PRINT_EXCEPTION (ex,
- "Caught exception in remove_member");
- ACE_TRY_THROW (CORBA::INTERNAL ());
+ ex._tao_print_exception ("Caught exception in remove_member");
+ throw CORBA::INTERNAL ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught while destroying member\n");
+ ex._tao_print_exception ("Exception caught while destroying member\n");
}
- ACE_ENDTRY;
}
@@ -76,5 +71,5 @@ void
Simple::shutdown (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+ this->orb_->shutdown (0);
}