/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OHOS_DEVICE_PROFILE_ERRORS_H #define OHOS_DEVICE_PROFILE_ERRORS_H #include "errors.h" namespace OHOS { namespace DeviceProfile { enum { DEVICE_PROFILE_MODULE_DDP = 0, }; constexpr ErrCode DEVICE_PROFILE_ERR_OFFSET = ErrCodeOffset(SUBSYS_DEVICEPROFILE, DEVICE_PROFILE_MODULE_DDP); enum { // DEVICE_PROFILE_ERR_OFFSET(98566143) ERR_DP_INVALID_PARAMS = 98566144, ERR_DP_INTERFACE_CHECK_FAILED = 98566145, ERR_DP_GET_LOCAL_UDID_FAILED = 98566146, ERR_DP_GET_SERVICE_FAILED = 98566147, ERR_DP_INIT_DB_FAILED = 98566148, ERR_DP_NOT_SUBSCRIBED = 98566149, ERR_DP_UNSUBSCRIBE_FAILED = 98566150, ERR_DP_SUBSCRIBE_FAILED = 98566151, ERR_DP_SUBSCRIBE_LIMIT_EXCEEDED = 98566152, ERR_DP_POST_TASK_FAILED = 98566153, ERR_DP_DEVICE_SYNC_BUSY = 98566154, ERR_DP_PERMISSION_DENIED = 98566155, ERR_DP_UNTRUSTED_GROUP = 98566156, ERR_DP_NOT_INIT_DB = 98566157, ERR_DP_GET_NETWORKID_FAILED = 98566158, ERR_DP_FILE_FAILED_ERR = 98566159, ERR_DP_LOAD_SERVICE_ERR = 98566160, ERR_DP_GET_DATA_FAILED = 98566161, ERR_DP_DELETE_DATA_FAILED = 98566162, ERR_DP_ADD_DATA_FAILED = 98566163, ERR_DP_SYNC_DATA_FAILED = 98566164, }; } // namespace DeviceProfile } // namespace OHOS #endif // OHOS_DEVICE_PROFILE_ERRORS_H