blob: 90831f4451cb8b9bfe7b71946bcca5852d0192c9 [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
Mark Slee84406052007-11-20 01:39:25 +000020- (void) write: (id <TProtocol>) protocol;
21
Mark Slee7e9eea42007-09-10 21:00:23 +000022+ (TApplicationException *) exceptionWithType: (int) type
Mark Slee33a7d892007-09-14 19:44:30 +000023 reason: (NSString *) message;
Mark Slee7e9eea42007-09-10 21:00:23 +000024
25@end