diff options
Diffstat (limited to 'cpp/src/slice2objc/Gen.cpp')
-rw-r--r-- | cpp/src/slice2objc/Gen.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp index f31146e05ab..6455d87a4ce 100644 --- a/cpp/src/slice2objc/Gen.cpp +++ b/cpp/src/slice2objc/Gen.cpp @@ -1291,6 +1291,15 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) _M << nl << "return @\"" << p->scoped().substr(2) << "\";"; _M << eb; + // + // ice_id + // + _H << nl << "-(NSString *) ice_id;"; + _M << sp << nl << "-(NSString *) ice_id"; + _M << sb; + _M << nl << "return @\"" << p->scoped() << "\";"; + _M << eb; + ContainerType ct = p->isLocal() ? LocalException : Other; writeInit(p, dataMembers, baseDataMembers, allDataMembers, requiresMemberInit(dataMembers), BaseTypeException, ct); writeFactory(p, allDataMembers, BaseTypeException, ct); @@ -3089,7 +3098,7 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) _M << sb; _M << nl << "[is_ endEncapsulation];"; _M << nl << "@throw [ICEUnknownUserException unknownUserException:__FILE__ line:__LINE__ " - << "unknown:[ex_ ice_name]];"; + << "unknown:[ex_ ice_id]];"; _M << eb; _M << eb; |