1 /* 2 * Copyright (c) 2022 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 SERVICES_DTBSCHEDMGR_NAPI_ERROR_CODE_H_ 17 #define SERVICES_DTBSCHEDMGR_NAPI_ERROR_CODE_H_ 18 19 namespace OHOS { 20 namespace DistributedSchedule { 21 enum { 22 /** 23 * Result(201) for permission denied. 24 */ 25 PERMISSION_DENIED = 201, 26 /** 27 * Result(401) for parameter check failed. 28 */ 29 PARAMETER_CHECK_FAILED = 401, 30 /** 31 * Result(16600001) for the system ability work abnormally. 32 */ 33 SYSTEM_WORK_ABNORMALLY = 16600001, 34 /** 35 * Result(16600002) for token or callback not registered. 36 */ 37 CALLBACK_TOKEN_UNREGISTERED = 16600002, 38 /** 39 * Result(16600003) for token register max times. 40 */ 41 OVER_MAX_REGISTERED_TIMES = 16600003, 42 /** 43 * Result(16600004) for token has been registered. 44 */ 45 REPEATED_REGISTRATION = 16600004, 46 }; 47 } // namespace DistributedSchedule 48 } // namespace OHOS 49 #endif // SERVICES_DTBSCHEDMGR_NAPI_ERROR_CODE_H_