From bec87e9b6a7edcbbfce5fadb520c41816143a8be Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Sat, 7 Dec 2002 22:17:44 +0000 Subject: more AMD exception fixes --- cpp/test/Ice/exceptions/TestAMDI.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'cpp/test/Ice/exceptions/TestAMDI.cpp') diff --git a/cpp/test/Ice/exceptions/TestAMDI.cpp b/cpp/test/Ice/exceptions/TestAMDI.cpp index 75cca588a7c..ce0c737e60a 100644 --- a/cpp/test/Ice/exceptions/TestAMDI.cpp +++ b/cpp/test/Ice/exceptions/TestAMDI.cpp @@ -35,13 +35,6 @@ ThrowerI::supportsUndeclaredExceptions_async(const AMD_Thrower_supportsUndeclare cb->ice_response(true); } -void -ThrowerI::supportsNonIceExceptions_async(const AMD_Thrower_supportsNonIceExceptionsPtr& cb, - const Ice::Current&) -{ - cb->ice_response(false); -} - void ThrowerI::throwAasA_async(const AMD_Thrower_throwAasAPtr& cb, Ice::Int a, const Ice::Current&) @@ -76,7 +69,8 @@ ThrowerI::throwBasA_async(const AMD_Thrower_throwBasAPtr& cb, B ex; ex.aMem = a; ex.bMem = b; - cb->ice_exception(ex); + throw ex; + //cb->ice_exception(ex); } void @@ -97,7 +91,8 @@ ThrowerI::throwBasB_async(const AMD_Thrower_throwBasBPtr& cb, B ex; ex.aMem = a; ex.bMem = b; - cb->ice_exception(ex); + throw ex; + //cb->ice_exception(ex); } void @@ -138,7 +133,8 @@ ThrowerI::throwUndeclaredB_async(const AMD_Thrower_throwUndeclaredBPtr& cb, B ex; ex.aMem = a; ex.bMem = b; - cb->ice_exception(ex); + throw ex; +// cb->ice_exception(ex); } void @@ -163,5 +159,5 @@ void ThrowerI::throwNonIceException_async(const AMD_Thrower_throwNonIceExceptionPtr&, const Ice::Current&) { - assert(false); // We cannot throw non-Ice exceptions with AMD. + throw int(12345); } -- cgit v1.2.3