r1327@opsdev009 (orig r70766): mcslee | 2007-11-19 17:39:25 -0800
[amiethrift.git] / lib / cocoa / src / TApplicationException.h
blob90831f4451cb8b9bfe7b71946bcca5852d0192c9
1 #import "TException.h"
2 #import "TProtocol.h"
4 enum {
5 TApplicationException_UNKNOWN = 0,
6 TApplicationException_UNKNOWN_METHOD = 1,
7 TApplicationException_INVALID_MESSAGE_TYPE = 2,
8 TApplicationException_WRONG_METHOD_NAME = 3,
9 TApplicationException_BAD_SEQUENCE_ID = 4,
10 TApplicationException_MISSING_RESULT = 5
13 // FIXME
14 @interface TApplicationException : TException {
15 int mType;
18 + (TApplicationException *) read: (id <TProtocol>) protocol;
20 - (void) write: (id <TProtocol>) protocol;
22 + (TApplicationException *) exceptionWithType: (int) type
23 reason: (NSString *) message;
25 @end