summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cs/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rwxr-xr-xcpp/src/slice2cs/Gen.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index edd6654a382..518cdb54f4a 100755
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -3981,9 +3981,9 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p)
_out << nl << "throw;";
_out << eb;
}
- _out << nl << "catch(Ice.UserException)";
+ _out << nl << "catch(Ice.UserException ex)";
_out << sb;
- _out << nl << "throw new Ice.UnknownUserException();";
+ _out << nl << "throw new Ice.UnknownUserException(ex);";
_out << eb;
_out << eb;
for(q = outParams.begin(); q != outParams.end(); ++q)
@@ -4425,14 +4425,14 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
_out << eb;
for(ExceptionList::const_iterator r = throws.begin(); r != throws.end(); ++r)
{
- _out << nl << "catch(" << fixId((*r)->scoped()) << " ex__)";
+ _out << nl << "catch(" << fixId((*r)->scoped()) << ')';
_out << sb;
- _out << nl << "throw ex__;";
+ _out << nl << "throw;";
_out << eb;
}
- _out << nl << "catch(Ice.UserException)";
+ _out << nl << "catch(Ice.UserException ex)";
_out << sb;
- _out << nl << "throw new Ice.UnknownUserException();";
+ _out << nl << "throw new Ice.UnknownUserException(ex);";
_out << eb;
_out << eb;
for(q = outParams.begin(); q != outParams.end(); ++q)