diff options
author | Mark Spruiell <mes@zeroc.com> | 2011-03-30 10:51:07 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2011-03-30 10:51:07 -0700 |
commit | c28875d4c01935919396999852cb1c3f92c0fdbc (patch) | |
tree | 12f6b1cefe57d572121dcb47bd22b2f65dc3edff /cpp/src/slice2java/Gen.cpp | |
parent | 4986 - add constructor that takes Throwable (diff) | |
download | ice-c28875d4c01935919396999852cb1c3f92c0fdbc.tar.bz2 ice-c28875d4c01935919396999852cb1c3f92c0fdbc.tar.xz ice-c28875d4c01935919396999852cb1c3f92c0fdbc.zip |
4987 - preserve exception cause
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 2a1efea1a36..3f2b833b817 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -4072,7 +4072,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) } out << nl << "catch(Ice.UserException __ex)"; out << sb; - out << nl << "throw new Ice.UnknownUserException(__ex.ice_name());"; + out << nl << "throw new Ice.UnknownUserException(__ex.ice_name(), __ex);"; out << eb; out << eb; @@ -5076,7 +5076,7 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) } out << nl << "catch(Ice.UserException __ex)"; out << sb; - out << nl << "throw new Ice.UnknownUserException(__ex.ice_name());"; + out << nl << "throw new Ice.UnknownUserException(__ex.ice_name(), __ex);"; out << eb; out << eb; if(ret || !outParams.empty()) |