• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description:  Error handling for Functions
15  */
16 
17 #ifndef ERROR_TYPES_H
18 #define ERROR_TYPES_H
19 
20 /**
21  * @defgroup connectivity_libs_common_err ERROR Types
22  * @ingroup  connectivity_libs_common
23  * @{
24  */
25 typedef enum {
26     RET_TYPE_OK = 0,
27     RET_TYPE_ERROR,
28     RET_TYPE_ERROR_RPC,
29     RET_TYPE_ERROR_IN_PARAMETERS,
30     RET_TYPE_ILLEGAL_OPERATION,
31     RET_TYPE_RETRY_LATER,
32     RET_TYPE_RETRY_AFTER_DEEP_SLEEP,
33     RET_TYPE_KEY_NOT_FOUND,
34     RET_TYPE_FLOW_CONTROL,
35     RET_TYPE_IN_PROGRESS,
36     RET_TYPE_NO_NETWORK_SERVICE,
37     RET_TYPE_INVALID_ENTRY,
38     RET_TYPE_OUT_OF_RANGE,
39     RET_TYPE_MEMORY_ERROR,
40     RET_TYPE_DISABLED_OPERATION,
41     RET_TYPE_NOT_POWER_ON,
42     RET_TYPE_KV_FLASH_FULL,
43     RET_TYPE_CID_ACTIVE,
44     RET_TYPE_RADIO_TEST_STATE_ERROR,
45     RET_TYPE_RADIOTEST_DISABLED,
46     RET_TYPE_NONIP_UNCONFIG,
47     RET_TYPE_NONIP_NOT_REGISTERED,
48     RET_TYPE_SIM_PIN_REQUIRED,
49     RET_TYPE_CID_NOT_DEFINED,
50     RET_TYPE_CID_NOT_ACTIVE,
51     RET_TYPE_CID_INVALID,
52     RET_TYPE_DEACTIVE_LAST_ACTIVE_CID,
53     RET_TYPE_IN_PROGRESS_BLOCK,
54     RET_TYPE_ABORT_BY_USER,
55     RET_TYPE_ABORT_BY_USER_FAILED,
56     RET_TYPE_DATA_SEQUENCE_REPEAT_ERROR,
57     RET_TYPE_NO_COMMAND_TO_ABORT,
58     RET_TYPE_COMMAND_UNABORTABLE,
59     RET_TYPE_COMMAND_INTERRUPTED,
60     RET_TYPE_PROTOCOL_FAMILY_UNMATCHING,
61     RET_TYPE_KEY_WRONG_SIZE,
62     RET_TYPE_KEY_TOO_BIG,
63     RET_TYPE_CONFIGURATION_CONFLICTS,
64 } ret_type_e;
65 
66 /**
67  * @}
68  */
69 #endif
70