blob: 4096854846c1a03e28bd3d4756f071fb1934ec83 [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,
Sergei Elin45764092022-09-23 23:21:31 +030044 {struct, [
45 {1, string},
46 {2, i32}
47 ]}
48).
David Reiss920959a2008-06-11 00:56:35 +000049
Sergei Elin45764092022-09-23 23:21:31 +030050-record('TApplicationException', {
51 message :: string(),
52 type :: integer()
53}).
David Reiss920959a2008-06-11 00:56:35 +000054
55-define(TApplicationException_UNKNOWN, 0).
56-define(TApplicationException_UNKNOWN_METHOD, 1).
57-define(TApplicationException_INVALID_MESSAGE_TYPE, 2).
58-define(TApplicationException_WRONG_METHOD_NAME, 3).
59-define(TApplicationException_BAD_SEQUENCE_ID, 4).
60-define(TApplicationException_MISSING_RESULT, 5).
Roger Meier345ecc72011-08-03 09:49:27 +000061-define(TApplicationException_INTERNAL_ERROR, 6).
62-define(TApplicationException_PROTOCOL_ERROR, 7).
Roger Meier01931492012-12-22 21:31:03 +010063-define(TApplicationException_INVALID_TRANSFORM, 8).
64-define(TApplicationException_INVALID_PROTOCOL, 9).
65-define(TApplicationException_UNSUPPORTED_CLIENT_TYPE, 10).
David Robakowskiae971ce2013-08-02 12:16:00 +020066
Sergei Elin45764092022-09-23 23:21:31 +030067-define(MULTIPLEXED_SERVICE_SEPARATOR, ":").
68-define(MULTIPLEXED_ERROR_HANDLER_KEY, "error_handler").