summaryrefslogtreecommitdiff
path: root/lib/ocaml/src
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2011-08-03 09:49:27 +0000
committerRoger Meier <roger@apache.org>2011-08-03 09:49:27 +0000
commit345ecc739ab145f9a0e7c27bbcb4ee72ccd3a86b (patch)
treecf0122091b05a989f08d2cb6398f1e36758486f2 /lib/ocaml/src
parentc1905587872fe7a78adcc9d8c6d0c091ac7b80cc (diff)
downloadthrift-345ecc739ab145f9a0e7c27bbcb4ee72ccd3a86b.tar.gz
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
Diffstat (limited to 'lib/ocaml/src')
-rw-r--r--lib/ocaml/src/Thrift.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ocaml/src/Thrift.ml b/lib/ocaml/src/Thrift.ml
index fdf2649fc..bc2d2c3ef 100644
--- a/lib/ocaml/src/Thrift.ml
+++ b/lib/ocaml/src/Thrift.ml
@@ -292,6 +292,8 @@ struct
| WRONG_METHOD_NAME
| BAD_SEQUENCE_ID
| MISSING_RESULT
+ | INTERNAL_ERROR
+ | PROTOCOL_ERROR
let typ_of_i = function
0l -> UNKNOWN
@@ -300,6 +302,8 @@ struct
| 3l -> WRONG_METHOD_NAME
| 4l -> BAD_SEQUENCE_ID
| 5l -> MISSING_RESULT
+ | 61 -> INTERNAL_ERROR
+ | 71 -> PROTOCOL_ERROR
| _ -> raise Thrift_error;;
let typ_to_i = function
| UNKNOWN -> 0l
@@ -308,6 +312,8 @@ struct
| WRONG_METHOD_NAME -> 3l
| BAD_SEQUENCE_ID -> 4l
| MISSING_RESULT -> 5l
+ | INTERNAL_ERROR -> 61
+ | PROTOCOL_ERROR -> 71
class t =
object (self)