1 /* 2 * Copyright (c) 2021 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 #ifndef OHOS_RESOURCE_MANAGER_RSTATE_H 16 #define OHOS_RESOURCE_MANAGER_RSTATE_H 17 18 namespace OHOS { 19 namespace Global { 20 namespace Resource { 21 enum RState { 22 SUCCESS = 0, 23 NOT_SUPPORT_SEP = 1, 24 INVALID_BCP47_STR_LEN_TOO_SHORT = 2, 25 INVALID_BCP47_LANGUAGE_SUBTAG = 3, 26 INVALID_BCP47_SCRIPT_SUBTAG = 4, 27 INVALID_BCP47_REGION_SUBTAG = 5, 28 HAP_INIT_FAILED = 6, 29 NOT_FOUND = 7, 30 INVALID_FORMAT = 8, 31 LOCALEINFO_IS_NULL = 9, 32 NOT_ENOUGH_MEM = 10, 33 ERROR = 10000, 34 ERROR_CODE_INVALID_INPUT_PARAMETER = 401, 35 ERROR_CODE_RES_ID_NOT_FOUND = 9001001, 36 ERROR_CODE_RES_NOT_FOUND_BY_ID = 9001002, 37 ERROR_CODE_RES_NAME_NOT_FOUND = 9001003, 38 ERROR_CODE_RES_NOT_FOUND_BY_NAME = 9001004, 39 ERROR_CODE_RES_PATH_INVALID = 9001005, 40 ERROR_CODE_RES_REF_TOO_MUCH = 9001006 41 }; 42 } // namespace Resource 43 } // namespace Global 44 } // namespace OHOS 45 #endif