summaryrefslogtreecommitdiff
path: root/lib/ocaml
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2012-12-22 21:31:03 +0100
committerRoger Meier <roger@apache.org>2012-12-22 21:31:03 +0100
commit0193149842924b65c5d3761d60055d298470d3ab (patch)
treea2f40b909010e1b5c45971b04c57a8daf20bc90e /lib/ocaml
parent8fa8aeac9a0f2ff4f11ac0ef73fc677bebd7a75f (diff)
downloadthrift-0193149842924b65c5d3761d60055d298470d3ab.tar.gz
THRIFT-1801 Sync up TApplicationException codes across languages and thrift implementations
Patch: Andrew Cox
Diffstat (limited to 'lib/ocaml')
-rw-r--r--lib/ocaml/src/Thrift.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ocaml/src/Thrift.ml b/lib/ocaml/src/Thrift.ml
index 8d423d010..f176a43bb 100644
--- a/lib/ocaml/src/Thrift.ml
+++ b/lib/ocaml/src/Thrift.ml
@@ -294,6 +294,9 @@ struct
| MISSING_RESULT
| INTERNAL_ERROR
| PROTOCOL_ERROR
+ | INVALID_TRANSFORM
+ | INVALID_PROTOCOL
+ | UNSUPPORTED_CLIENT_TYPE
let typ_of_i = function
0l -> UNKNOWN
@@ -304,6 +307,9 @@ struct
| 5l -> MISSING_RESULT
| 6l -> INTERNAL_ERROR
| 7l -> PROTOCOL_ERROR
+ | 8l -> INVALID_TRANSFORM
+ | 9l -> INVALID_PROTOCOL
+ | 10l -> UNSUPPORTED_CLIENT_TYPE
| _ -> raise Thrift_error;;
let typ_to_i = function
| UNKNOWN -> 0l
@@ -314,6 +320,9 @@ struct
| MISSING_RESULT -> 5l
| INTERNAL_ERROR -> 6l
| PROTOCOL_ERROR -> 7l
+ | INVALID_TRANSFORM -> 8l
+ | INVALID_PROTOCOL -> 9l
+ | UNSUPPORTED_CLIENT_TYPE -> 10l
class t =
object (self)