1 /*
2  * Copyright (c) 2024 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 OHOS_DM_SOFTBUS_ERROR_CODE_H
17 #define OHOS_DM_SOFTBUS_ERROR_CODE_H
18 
19 #include <memory>
20 #include <iostream>
21 #include "ipc_req.h"
22 #include "ipc_rsp.h"
23 
24 namespace OHOS {
25 namespace DistributedHardware {
26 constexpr int32_t SOFTBUS_IPC_ERR = -426442720;
27 constexpr int32_t SOFTBUS_INVALID_PARAM = -426442749;
28 constexpr int32_t SOFTBUS_WIFI_DIRECT_INIT_FAILED = -426442707;
29 constexpr int32_t SOFTBUS_ERR = -426442706;
30 constexpr int32_t SOFTBUS_DISCOVER_MANAGER_DUPLICATE_PARAM = -425799671;
31 constexpr int32_t SOFTBUS_DISCOVER_MANAGER_INNERFUNCTION_FAIL = -425799673;
32 constexpr int32_t SOFTBUS_TRANS_SESSION_SERVER_NOINIT = -426115031;
33 constexpr int32_t SOFTBUS_TRANS_UDP_GET_CHANNEL_FAILED = -426115035;
34 } // namespace DistributedHardware
35 } // namespace OHOS
36 #endif // OHOS_DM_SOFTBUS_ERROR_CODE_H