46 Star 173 Fork 4.7K

OpenHarmony/interface_sdk-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
@ohos.application.formError.d.ts 7.38 KB
一键复制 编辑 原始数据 按行查看 历史
cxy251 提交于 2个月前 . phase1&2
/*
* Copyright (c) 2022-2023 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.
*/
/**
* @file
* @kit FormKit
*/
/**
* interface of formError.
*
* @namespace formError
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare namespace formError {
/**
* Error of form.
*
* @enum { number }
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
enum FormError {
/**
* A common internal error occurs during form processing.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_COMMON = 1,
/**
* The application does not have permission to use forms.
* Ensure that the application is granted with the ohos.permission.REQUIRE_FORM
* and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED permissions.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_PERMISSION_DENY = 2,
/**
* Failed to obtain the configuration information about the form specified by the
* request parameters. Ensure that the parameters of the form to be added are
* consistent with those provided by the form provider.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_GET_INFO_FAILED = 4,
/**
* Failed to obtain the bundle to which the form belongs based on the request parameters.
* Ensure that the bundle to which the form to be added belongs is available.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_GET_BUNDLE_FAILED = 5,
/**
* Failed to initialize the form layout based on the request parameters.
* Ensure that the grid style of the form is supported by the form provider.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_GET_LAYOUT_FAILED = 6,
/**
* Invalid input parameter during form operation. Ensure that all input
* parameters are valid.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_ADD_INVALID_PARAM = 7,
/**
* The form configuration to be obtained using an existing form ID is
* different from that obtained for the first time.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_CFG_NOT_MATCH_ID = 8,
/**
* The ID of the form to be operated does not exist in the Form Manager Service.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_NOT_EXIST_ID = 9,
/**
* Failed to bind the Form Manager Service to the provider service.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_BIND_PROVIDER_FAILED = 10,
/**
* The total number of added forms exceeds the maximum allowed by the system.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_MAX_SYSTEM_FORMS = 11,
/**
* The number of form instances generated using the same form configuration
* exceeds the maximum allowed by the system.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_MAX_INSTANCES_PER_FORM = 12,
/**
* The form being requested was added by other applications and cannot be
* operated by the current application.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_OPERATION_FORM_NOT_SELF = 13,
/**
* The Form Manager Service failed to instruct the form provider to delete the form.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_PROVIDER_DEL_FAIL = 14,
/**
* The total number of added forms exceeds the maximum per client.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_MAX_FORMS_PER_CLIENT = 15,
/**
* The total number of added temp forms exceeds the maximum in system.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_MAX_SYSTEM_TEMP_FORMS = 16,
/**
* The module can not be find in system.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_FORM_NO_SUCH_MODULE = 17,
/**
* The ability can not be find in system.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_FORM_NO_SUCH_ABILITY = 18,
/**
* The dimension is not exist in the form.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_FORM_NO_SUCH_DIMENSION = 19,
/**
* The ability is not installed.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_FORM_FA_NOT_INSTALLED = 20,
/**
* Failed to obtain the RPC object of the Form Manager Service because
* the service is not started.Please try again after the service is started.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_SYSTEM_RESPONSES_FAILED = 30,
/**
* Failed to obtain the form requested by the client because another form
* with the same form ID is in use. Forms in use cannot have the same ID.
* To obtain and display a form that has the same configuration as an in-use
* form in the same application, you are advised to set the form ID to 0 in
* the request parameters.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_FORM_DUPLICATE_ADDED = 31,
/**
* The form is being restored. Perform operations on the form only after
* the restoration is complete.
*
* @syscap SystemCapability.Ability.Form
* @since arkts {'1.1':'8', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_IN_RECOVERY = 36,
/**
* Distributed scheduling failed
*
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since arkts {'1.1':'9', '1.2':'20'}
* @arkts 1.1&1.2
*/
ERR_DISTRIBUTED_SCHEDULE_FAILED = 37
}
}
export default formError;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

搜索帮助