David Reiss | ac54955 | 2008-06-10 22:56:59 +0000 | [diff] [blame] | 1 | %%% Copyright (c) 2007- Facebook |
| 2 | %%% Distributed under the Thrift Software License |
| 3 | %%% |
| 4 | %%% See accompanying file LICENSE or visit the Thrift site at: |
| 5 | %%% http://developers.facebook.com/thrift/ |
| 6 | |
| 7 | %% TType |
| 8 | -define(tType_STOP, 0). |
| 9 | -define(tType_VOID, 1). |
| 10 | -define(tType_BOOL, 2). |
| 11 | -define(tType_BYTE, 3). |
| 12 | -define(tType_DOUBLE, 4). |
| 13 | -define(tType_I16, 6). |
| 14 | -define(tType_I32, 8). |
| 15 | -define(tType_I64, 10). |
| 16 | -define(tType_STRING, 11). |
| 17 | -define(tType_STRUCT, 12). |
| 18 | -define(tType_MAP, 13). |
| 19 | -define(tType_SET, 14). |
| 20 | -define(tType_LIST, 15). |
| 21 | |
| 22 | % TMessageType |
| 23 | -define(tMessageType_CALL, 1). |
| 24 | -define(tMessageType_REPLY, 2). |
| 25 | -define(tMessageType_EXCEPTION, 3). |
David Reiss | 920959a | 2008-06-11 00:56:35 +0000 | [diff] [blame] | 26 | |
| 27 | % TApplicationException |
| 28 | -define(TApplicationException_Structure, |
| 29 | {struct, [{1, string}, |
| 30 | {2, i32}]}). |
| 31 | |
| 32 | -record('TApplicationException', {message, type}). |
| 33 | |
| 34 | -define(TApplicationException_UNKNOWN, 0). |
| 35 | -define(TApplicationException_UNKNOWN_METHOD, 1). |
| 36 | -define(TApplicationException_INVALID_MESSAGE_TYPE, 2). |
| 37 | -define(TApplicationException_WRONG_METHOD_NAME, 3). |
| 38 | -define(TApplicationException_BAD_SEQUENCE_ID, 4). |
| 39 | -define(TApplicationException_MISSING_RESULT, 5). |
| 40 | |