1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
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  */
15 
16 #ifndef CLOUD_EXTENSION_ERROR_H
17 #define CLOUD_EXTENSION_ERROR_H
18 
19 
20 #ifdef __cplusplus
21 #if __cplusplus
22 extern "C" {
23 #endif
24 #endif
25 
26 #define ERRNO_SUCCESS 0
27 #define ERRNO_NULLPTR 1
28 #define ERRNO_WRONG_TYPE 2
29 #define ERRNO_INVALID_INPUT_TYPE 3
30 #define ERRNO_ASSET_DOWNLOAD_FAILURE 4
31 #define ERRNO_ASSET_UPLOAD_FAILURE 5
32 #define ERRNO_UNSUPPORTED 6
33 #define ERRNO_NETWORK_ERROR 7
34 #define ERRNO_LOCKED_BY_OTHERS 8
35 #define ERRNO_UNLOCKED 9
36 #define ERRNO_RECORD_LIMIT_EXCEEDED 10
37 #define ERRNO_NO_SPACE_FOR_ASSET 11
38 #define ERRNO_IPC_RW_ERROR 12
39 #define ERRNO_IPC_CONN_ERROR 13
40 #define ERRNO_IPC_ERRORS 14
41 #define ERRNO_OTHER_IO_ERROR 15
42 #define ERRNO_OUT_OF_RANGE 16
43 #define ERRNO_NO_SUCH_TABLE_IN_DB 17
44 #define ERRNO_CLOUD_INVALID_STATUS 18
45 #define ERRNO_UNKNOWN 19
46 #define ERRNO_CLOUD_DISABLE 20
47 
48 
49 #ifdef __cplusplus
50 #if __cplusplus
51 }
52 #endif
53 #endif
54 
55 #endif // CLOUD_EXTENSION_ERROR_H
56