diff options
author | Jose <jose@zeroc.com> | 2018-11-22 21:41:25 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-11-22 21:42:20 +0100 |
commit | c2b015d26036f327cc77c0204492abbd266db5f5 (patch) | |
tree | ec9356e3c6e510db5f48e3b99533dd36fc07d7dd /cpp/src/slice2js/Gen.cpp | |
parent | typescript: don't generate Prx definiton for Class without operations (diff) | |
download | ice-c2b015d26036f327cc77c0204492abbd266db5f5.tar.bz2 ice-c2b015d26036f327cc77c0204492abbd266db5f5.tar.xz ice-c2b015d26036f327cc77c0204492abbd266db5f5.zip |
typescript: missing cause in mapping for exception
Close #304
Diffstat (limited to 'cpp/src/slice2js/Gen.cpp')
-rw-r--r-- | cpp/src/slice2js/Gen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2js/Gen.cpp b/cpp/src/slice2js/Gen.cpp index 28f1bc41e9b..93d461b9ec7 100644 --- a/cpp/src/slice2js/Gen.cpp +++ b/cpp/src/slice2js/Gen.cpp @@ -3073,12 +3073,14 @@ Slice::Gen::TypeScriptVisitor::visitExceptionStart(const ExceptionPtr& p) _out << nl << " * @param " << fixId((*q)->name()) << " " << getDocSentence(comment->overview()); } } + _out << nl << " * @param ice_cause The error that cause this exception."; _out << nl << " */"; _out << nl << "constructor" << spar; for(DataMemberList::const_iterator q = allDataMembers.begin(); q != allDataMembers.end(); ++q) { _out << (fixId((*q)->name()) + "?:" + typeToString((*q)->type(), p, imports(), true, false, true)); } + _out << "ice_cause?:string|Error"; _out << epar << ";"; } for(DataMemberList::const_iterator q = dataMembers.begin(); q != dataMembers.end(); ++q) |