• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 /**
17  * @addtogroup DeviceManager
18  * @{
19  *
20  * @brief Provides APIs to obtain information about trusted devices and local devices.
21  *
22  * @since 20
23  */
24 
25 /**
26  * @file oh_device_manager_err_code.h
27  *
28  * @brief Declaration error code information.
29  *
30  * @kit DistributedServiceKit
31  * @library libdevicemanager_ndk.so
32  * @syscap SystemCapability.DistributedHardware.DeviceManager
33  *
34  * @since 20
35  */
36 
37 
38 #ifndef OH_DEVICE_MANAGER_ERR_CODE_H
39 #define OH_DEVICE_MANAGER_ERR_CODE_H
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /**
46  * @brief Enumerates the error codes.
47  *
48  * @since 20
49  */
50 typedef enum DeviceManager_ErrorCode {
51     /**
52      * @error The operation is successful.
53      */
54     ERR_OK = 0,
55     /**
56      * @error Permission verification failed.
57      */
58     ERR_PERMISSION_ERROR = 201,
59     /**
60      * @error Invalid parameter is detected.
61      */
62     ERR_INVALID_PARAMETER = 401,
63     /**
64      * @error Failed to execute the function.
65      */
66     DM_ERR_FAILED = 11600101,
67     /**
68      * @error Failed to obtain the service.
69      */
70     DM_ERR_OBTAIN_SERVICE = 11600102,
71     /**
72      * @error Failed to obtain the bundleName.
73      */
74     DM_ERR_OBTAIN_BUNDLE_NAME = 11600109,
75 } DeviceManager_ErrorCode;
76 #ifdef __cplusplus
77 };
78 #endif
79 
80 /** @} */
81 #endif
82