THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153412 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/js/thrift.js b/lib/js/thrift.js
index 860cb99..91c4466 100644
--- a/lib/js/thrift.js
+++ b/lib/js/thrift.js
@@ -85,7 +85,9 @@
'INVALID_MESSAGE_TYPE' : 2,
'WRONG_METHOD_NAME' : 3,
'BAD_SEQUENCE_ID' : 4,
- 'MISSING_RESULT' : 5
+ 'MISSING_RESULT' : 5,
+ 'INTERNAL_ERROR' : 6,
+ 'PROTOCOL_ERROR' : 7
};
Thrift.TApplicationException = function(message, code) {