diff --git a/zh-cn/contribute/template/errorcodes-template.md b/zh-cn/contribute/template/errorcodes-template.md index b0dc80efcb97c58d6b86f2c8e1c9963012dccb0d..5672ec5ae132ad5ede2098ffe1392792c84b067a 100644 --- a/zh-cn/contribute/template/errorcodes-template.md +++ b/zh-cn/contribute/template/errorcodes-template.md @@ -1,10 +1,10 @@ -# xxx *(子系统名)* 错误码 +# xxx(模块名,与API参考title保持一致)错误码 > **说明:** > > *1、所有的写作说明,在完成写作后,都要删除。* > -> *2、错误码文档的命名规则:统一前缀,命名格式为errorcode-xxx(具体子系统名).md。* +> *2、错误码文档的命名规则:统一前缀,命名格式为errorcode-xxx.md。* | | 说明项 | 细则 | | ---- | ------------------------------ | ------------------------------------------------------------ | @@ -25,11 +25,9 @@ This is repeat operation. > **说明:** > -> *1.描述**错误码所属的业务场景(比如开发xx业务、开发xx功能时)***。 -> -> *2.描述**出现异常的具体现象、产生位置(比如xx模块、xx类、xx接口等)**,辅助开发者理解和处理异常。* +> *描述**错误码所属的业务场景(比如开发xx业务、开发xx功能时)及出现异常的具体现象**,辅助开发者理解和处理异常*。 -当对同一窗口对象存在重复操作时,xx模块(或xx类,或xx接口)会上报此错误码。 +当对同一窗口对象存在重复操作时,系统会产生此错误码。 ### 可能原因 diff --git a/zh-cn/contribute/template/js-template.md b/zh-cn/contribute/template/js-template.md index 05fe7ca32ad5e0a02e227090e86039f41e0214a6..127e95f17fb7f03c1c555ef6ef8a019cfd3ee788 100644 --- a/zh-cn/contribute/template/js-template.md +++ b/zh-cn/contribute/template/js-template.md @@ -155,6 +155,15 @@ import call from '@ohos.telephony.call'; | string | 返回值描述。取到返回值之后,可以用来做什么。 | | Promise\> | 返回值描述。Promise写法参考总体写作说明第14项。 | +**错误码**:(可选,如不涉及可删除) + +以下错误码的详细介绍请参见[ohos.window(窗口)错误码]()。*(链接到对应模块的“错误码参考”文档)* + +| 错误码ID | 错误信息(此处仅提供错误抛出的关键信息) | +| -------- | ---------------------------------------- | +| 1300001 | This is repeat operation. | +| 1300002 | This window state is abnormally. | + **示例:** ```js