• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2021 Huawei Technologies Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_ERRCODE_H_
18 #define MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_ERRCODE_H_
19 
20 // common err code  -1 ~ -100
21 constexpr int MINDRT_ERROR = -1;
22 constexpr int MINDRT_OK = 0;
23 constexpr int COMM_NULL_PTR = -1;
24 constexpr int ERRORCODE_SUCCESS = 1;
25 
26 // actor module  err code   -101 ~ -200
27 constexpr int ACTOR_PARAMER_ERR = -101;
28 constexpr int ACTOR_NOT_FIND = -102;
29 constexpr int IO_NOT_FIND = -103;
30 constexpr int ACTOR_TERMINATED = -104;
31 
32 // TCP module err code -301 ~ -400
33 // Null
34 // UDP IO err code  -401 ~ -500
35 constexpr int UDP_MSG_TOO_BIG = -401;
36 constexpr int UDP_MSG_WRITE_ERR = -402;
37 constexpr int UDP_MSG_SEND_ERR = -403;
38 constexpr int UDP_MSG_ADDR_ERR = -404;
39 constexpr int UDP_MSG_SEND_SUCCESS = 1;
40 
41 // Protocol module err code -501 ~ -600
42 constexpr int PB_MSG_NO_NAME = -501;
43 
44 #endif
45