• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16export const FormError = {
17    ERR_COMMON: 1,
18    ERR_PERMISSION_DENY: 2,
19    ERR_GET_INFO_FAILED: 4,
20    ERR_GET_BUNDLE_FAILED: 5,
21    ERR_GET_LAYOUT_FAILED: 6,
22    ERR_ADD_INVALID_PARAM: 7,
23    ERR_CFG_NOT_MATCH_ID: 8,
24    ERR_NOT_EXIST_ID: 9,
25    ERR_BIND_PROVIDER_FAILED: 10,
26    ERR_MAX_SYSTEM_FORMS: 11,
27    ERR_MAX_INSTANCES_PER_FORM: 12,
28    ERR_OPERATION_FORM_NOT_SELF: 13,
29    ERR_PROVIDER_DEL_FAIL: 14,
30    ERR_MAX_FORMS_PER_CLIENT: 15,
31    ERR_MAX_SYSTEM_TEMP_FORMS: 16,
32    ERR_FORM_NO_SUCH_MODULE: 17,
33    ERR_FORM_NO_SUCH_ABILITY: 18,
34    ERR_FORM_NO_SUCH_DIMENSION: 19,
35    ERR_FORM_FA_NOT_INSTALLED: 20,
36    ERR_SYSTEM_RESPONSES_FAILED: 30,
37    ERR_FORM_DUPLICATE_ADDED: 31,
38    ERR_IN_RECOVERY: 36,
39    ERR_DISTRIBUTED_SCHEDULE_FAILED: 37
40}
41export function mockFormError() {
42    const formError = {
43        FormError
44    }
45    return formError;
46}