blob: 7b724a0b108ea72fe375d864e4f794ebc42681d9 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001%%
2%% Licensed to the Apache Software Foundation (ASF) under one
3%% or more contributor license agreements. See the NOTICE file
4%% distributed with this work for additional information
5%% regarding copyright ownership. The ASF licenses this file
6%% to you under the Apache License, Version 2.0 (the
7%% "License"); you may not use this file except in compliance
8%% with the License. You may obtain a copy of the License at
9%%
10%% http://www.apache.org/licenses/LICENSE-2.0
11%%
12%% Unless required by applicable law or agreed to in writing,
13%% software distributed under the License is distributed on an
14%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15%% KIND, either express or implied. See the License for the
16%% specific language governing permissions and limitations
17%% under the License.
18%%
David Reissac549552008-06-10 22:56:59 +000019
20%% TType
21-define(tType_STOP, 0).
22-define(tType_VOID, 1).
23-define(tType_BOOL, 2).
24-define(tType_BYTE, 3).
Jens Geyer40c28d32015-10-20 23:13:02 +020025-define(tType_I8, 3).
David Reissac549552008-06-10 22:56:59 +000026-define(tType_DOUBLE, 4).
27-define(tType_I16, 6).
28-define(tType_I32, 8).
29-define(tType_I64, 10).
30-define(tType_STRING, 11).
31-define(tType_STRUCT, 12).
32-define(tType_MAP, 13).
33-define(tType_SET, 14).
34-define(tType_LIST, 15).
35
36% TMessageType
37-define(tMessageType_CALL, 1).
38-define(tMessageType_REPLY, 2).
39-define(tMessageType_EXCEPTION, 3).
David Reissdeda1412009-04-02 19:22:31 +000040-define(tMessageType_ONEWAY, 4).
David Reiss920959a2008-06-11 00:56:35 +000041
42% TApplicationException
43-define(TApplicationException_Structure,
44 {struct, [{1, string},
45 {2, i32}]}).
46
47-record('TApplicationException', {message, type}).
48
49-define(TApplicationException_UNKNOWN, 0).
50-define(TApplicationException_UNKNOWN_METHOD, 1).
51-define(TApplicationException_INVALID_MESSAGE_TYPE, 2).
52-define(TApplicationException_WRONG_METHOD_NAME, 3).
53-define(TApplicationException_BAD_SEQUENCE_ID, 4).
54-define(TApplicationException_MISSING_RESULT, 5).
Roger Meier345ecc72011-08-03 09:49:27 +000055-define(TApplicationException_INTERNAL_ERROR, 6).
56-define(TApplicationException_PROTOCOL_ERROR, 7).
Roger Meier01931492012-12-22 21:31:03 +010057-define(TApplicationException_INVALID_TRANSFORM, 8).
58-define(TApplicationException_INVALID_PROTOCOL, 9).
59-define(TApplicationException_UNSUPPORTED_CLIENT_TYPE, 10).