summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-19 19:32:21 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-19 19:32:21 +0000
commit101fc61aa6768b1b9fcbc9911bf83509b221d403 (patch)
treea31861a676d9cf06700aa8c3d3508d867a02882f /cpp/src/slice2java/Gen.cpp
parent#ifdef test that causes problems under Linux (diff)
downloadice-101fc61aa6768b1b9fcbc9911bf83509b221d403.tar.bz2
ice-101fc61aa6768b1b9fcbc9911bf83509b221d403.tar.xz
ice-101fc61aa6768b1b9fcbc9911bf83509b221d403.zip
added members to object, facet, and operation not exist exceptions
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index bec9d531c49..d6fbb51ed9a 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -3104,7 +3104,9 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p)
out << eb;
out << nl << "catch (ClassCastException __ex)";
out << sb;
- out << nl << "throw new Ice.OperationNotExistException();";
+ out << nl << "Ice.OperationNotExistException __opEx = new Ice.OperationNotExistException();";
+ out << nl << "__opEx.operation = __current.operation;";
+ out << nl << "throw __opEx;";
out << eb;
out << nl << "try";
out << sb;