blob: 1fee06e4a8406a6e91d0631578227c99fe31df06 [file] [log] [blame]
Mark Slee33a7d892007-09-14 19:44:30 +00001#import "TException.h"
2#import "TProtocol.h"
3
Mark Slee7e9eea42007-09-10 21:00:23 +00004enum {
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
11};
12
13// FIXME
Mark Slee33a7d892007-09-14 19:44:30 +000014@interface TApplicationException : TException {
15 int mType;
Mark Slee7e9eea42007-09-10 21:00:23 +000016}
17
18+ (TApplicationException *) read: (id <TProtocol>) protocol;
19
20+ (TApplicationException *) exceptionWithType: (int) type
Mark Slee33a7d892007-09-14 19:44:30 +000021 reason: (NSString *) message;
Mark Slee7e9eea42007-09-10 21:00:23 +000022
23@end