summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/TestAMDI.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-12-07 22:17:44 +0000
committerMarc Laukien <marc@zeroc.com>2002-12-07 22:17:44 +0000
commitbec87e9b6a7edcbbfce5fadb520c41816143a8be (patch)
treed428b8bf9306090d456b198c87d34e0dd048a5cb /cpp/test/Ice/exceptions/TestAMDI.cpp
parentAMD exception cleanup (diff)
downloadice-bec87e9b6a7edcbbfce5fadb520c41816143a8be.tar.bz2
ice-bec87e9b6a7edcbbfce5fadb520c41816143a8be.tar.xz
ice-bec87e9b6a7edcbbfce5fadb520c41816143a8be.zip
more AMD exception fixes
Diffstat (limited to 'cpp/test/Ice/exceptions/TestAMDI.cpp')
-rw-r--r--cpp/test/Ice/exceptions/TestAMDI.cpp18
1 files changed, 7 insertions, 11 deletions
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
@@ -36,13 +36,6 @@ ThrowerI::supportsUndeclaredExceptions_async(const AMD_Thrower_supportsUndeclare
}
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);
}