diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-07-22 19:55:30 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-07-22 19:55:30 +0000 |
commit | 3996f5aa2d0a779ba9a18fc22d98010271be7535 (patch) | |
tree | 4a0a3e37ca29e52f56bd4bd061476419b2fc9f5c /cpp/src/slice2cpp/Gen.cpp | |
parent | Use _M_ARM, put fix on delegate. (diff) | |
download | ice-3996f5aa2d0a779ba9a18fc22d98010271be7535.tar.bz2 ice-3996f5aa2d0a779ba9a18fc22d98010271be7535.tar.xz ice-3996f5aa2d0a779ba9a18fc22d98010271be7535.zip |
pass exception name to UnknownUserException
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index c8546ca257c..2c0fa1933b9 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1960,9 +1960,9 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) C << nl << "throw;"; C << eb; } - C << nl << "catch(const ::Ice::UserException&)"; + C << nl << "catch(const ::Ice::UserException& __ex)"; C << sb; - C << nl << "throw ::Ice::UnknownUserException(__FILE__, __LINE__);"; + C << nl << "throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());"; C << eb; C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; |