未验证 提交 fe7a0bbb 编写于 作者: O openharmony_ci 提交者: Gitee

!21208 翻译完成:20317 修改buffer、url模块md文档与d.ts部分接口错误码描述不相符问题

Merge pull request !21208 from wusongqing/TR20317
......@@ -218,7 +218,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "totalLength" is out of range. |
| 10200001 | The value of "length" is out of range. It must be >= 0 and <= uint32 max. Received value is: [length] |
**Example**
......@@ -1387,7 +1387,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -1431,7 +1431,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -1681,7 +1681,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -1723,7 +1723,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2037,7 +2037,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2076,7 +2076,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2115,7 +2115,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2154,7 +2154,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2193,7 +2193,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] |
**Example**
......@@ -2232,7 +2232,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] |
**Example**
......@@ -2271,7 +2271,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] |
**Example**
......@@ -2311,7 +2311,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] |
**Example**
......@@ -2350,7 +2350,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2391,7 +2391,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2431,7 +2431,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2470,7 +2470,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2510,7 +2510,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2550,7 +2550,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2591,7 +2591,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2630,7 +2630,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2672,7 +2672,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2712,7 +2712,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2752,7 +2752,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2791,7 +2791,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2831,7 +2831,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......@@ -2871,7 +2871,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
| ID| Error Message|
| -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. |
| 10200001 | The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] |
**Example**
......
......@@ -13,7 +13,7 @@ import Url from '@ohos.url'
### constructor<sup>9+</sup>
constructor(init?: string[][] | Record&lt;string, string&gt; | string | URLSearchParams)
constructor(init?: string[][] | Record&lt;string, string&gt; | string | URLParams)
A constructor used to create a **URLParams** instance.
......@@ -23,7 +23,7 @@ A constructor used to create a **URLParams** instance.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| init | string[][] \| Record&lt;string, string&gt; \| string \| URLSearchParams | No| Input parameter objects, which include the following:<br>- **string[][]**: two-dimensional string array<br>- **Record&lt;string, string&gt;**: list of objects<br>- **string**: string<br>- **URLSearchParams**: object<br>The default value is **null**.|
| init | string[][] \| Record&lt;string, string&gt; \| string \| URLParams | No| Input parameter objects, which include the following:<br>- **string[][]**: two-dimensional string array<br>- **Record&lt;string, string&gt;**: list of objects<br>- **string**: string<br>- **URLParams**: object<br>The default value is **null**.|
**Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册