diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-21 14:03:30 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-21 14:03:30 -0700 |
commit | 01e3d1af5c5e19d74d391a8998495df59f6c4ce8 (patch) | |
tree | a94485661f2eb28ce4b1cb29fabf34c3fddf7c8d /cpp/test/Ice/exceptions/TestAMDI.cpp | |
parent | Various changes for 3.4.1 installers (diff) | |
download | ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.bz2 ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.xz ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.zip |
bug 4733 - fixing bugs in AMD exceptions
Diffstat (limited to 'cpp/test/Ice/exceptions/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/TestAMDI.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/test/Ice/exceptions/TestAMDI.cpp b/cpp/test/Ice/exceptions/TestAMDI.cpp index e77a3a68bcf..503e33f8535 100644 --- a/cpp/test/Ice/exceptions/TestAMDI.cpp +++ b/cpp/test/Ice/exceptions/TestAMDI.cpp @@ -182,3 +182,19 @@ ThrowerI::throwAssertException_async(const AMD_Thrower_throwAssertExceptionPtr&, { assert(false); // Not supported in C++. } + +void +ThrowerI::throwAfterResponse_async(const AMD_Thrower_throwAfterResponsePtr& cb, const Ice::Current&) +{ + cb->ice_response(); + + throw std::string(); +} + +void +ThrowerI::throwAfterException_async(const AMD_Thrower_throwAfterExceptionPtr& cb, const Ice::Current&) +{ + cb->ice_exception(A()); + + throw std::string(); +} |