THRIFT-1801 Sync up TApplicationException codes across languages and thrift implementations
Patch: Andrew Cox
diff --git a/lib/cocoa/src/TApplicationException.h b/lib/cocoa/src/TApplicationException.h
index 0ad0b9a..7b027d6 100644
--- a/lib/cocoa/src/TApplicationException.h
+++ b/lib/cocoa/src/TApplicationException.h
@@ -28,7 +28,10 @@
TApplicationException_BAD_SEQUENCE_ID = 4,
TApplicationException_MISSING_RESULT = 5,
TApplicationException_INTERNAL_ERROR = 6,
- TApplicationException_PROTOCOL_ERROR = 7
+ TApplicationException_PROTOCOL_ERROR = 7,
+ TApplicationException_INVALID_TRANSFORM = 8,
+ TApplicationException_INVALID_PROTOCOL = 9,
+ TApplicationException_UNSUPPORTED_CLIENT_TYPE = 10
};
// FIXME
diff --git a/lib/cocoa/src/TApplicationException.m b/lib/cocoa/src/TApplicationException.m
index 66c2f2b..974dfc5 100644
--- a/lib/cocoa/src/TApplicationException.m
+++ b/lib/cocoa/src/TApplicationException.m
@@ -45,6 +45,21 @@
case TApplicationException_MISSING_RESULT:
name = @"Missing result";
break;
+ case TApplicationException_INTERNAL_ERROR:
+ name = @"Internal error";
+ break;
+ case TApplicationException_PROTOCOL_ERROR:
+ name = @"Protocol error";
+ break;
+ case TApplicationException_INVALID_TRANSFORM:
+ name = @"Invalid transform";
+ break;
+ case TApplicationException_INVALID_PROTOCOL:
+ name = @"Invalid protocol";
+ break;
+ case TApplicationException_UNSUPPORTED_CLIENT_TYPE:
+ name = @"Unsupported client type";
+ break;
default:
name = @"Unknown";
break;