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 INTERFACES_INNER_API_ACE_CONSTANTS_H 17 #define INTERFACES_INNER_API_ACE_CONSTANTS_H 18 19 namespace OHOS::Ace { 20 enum UIContentErrorCode : uint16_t { 21 NO_ERRORS = 0, 22 NULL_WINDOW, 23 NULL_POINTER, 24 PARSE_MANIFEST_FAILED, 25 NULL_PAGE_ROUTER, 26 STAGING_PAGE_EXIST, 27 NULL_CARD_CALLBACK, 28 NULL_CARD_RES, 29 CARD_PAGE_NOT_READY, 30 INVALID_PAGE_ID, 31 NULL_URL, 32 WRONG_PAGE_ROUTER, 33 NO_STAGE, 34 INVALID_URL, 35 }; 36 } // namespace OHOS::Ace 37 38 #endif // INTERFACES_INNER_API_ACE_CONSTANTS_H 39