diff --git a/en/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md b/en/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md index 8701a6b80d7d54dc8bf6a30850c3551a741e77ed..493b263bd25d74fa7cfa5d9c59a45659fb4b5740 100644 --- a/en/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md +++ b/en/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md @@ -46,7 +46,7 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ----------- | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementName | [ElementName](js-apis-bundle-ElementName.md) | Yes | **ElementName**. | | callback | AsyncCallback<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)> | Yes | Callback used to return the remote ability information.| @@ -75,7 +75,7 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ----------- | -------------------------------------------- | ---- | ----------------------- | | elementName | [ElementName](js-apis-bundle-ElementName.md) | Yes | **ElementName**.| @@ -107,10 +107,10 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------ | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementNames | Array<[ElementName](js-apis-bundle-ElementName.md)> | Yes | **ElementName** array, whose maximum length is 10. | -| callback | AsyncCallback< Array<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)>> | Yes | Callback used to return the remote ability information.| +| callback | AsyncCallback< Array<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)>> | Yes | Callback used to return an array of the remote ability information.| @@ -136,7 +136,7 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------ | --------------------------------------------------- | ---- | ----------------------- | | elementNames | Array<[ElementName](js-apis-bundle-ElementName.md)> | Yes | **ElementName** array, whose maximum length is 10.| diff --git a/en/application-dev/reference/apis/js-apis-faultLogger.md b/en/application-dev/reference/apis/js-apis-faultLogger.md index 5b84cfa1c1e778e0de657aeaea41e98c2146417c..1e5a056e904388a024342c077b1aac47ce631575 100644 --- a/en/application-dev/reference/apis/js-apis-faultLogger.md +++ b/en/application-dev/reference/apis/js-apis-faultLogger.md @@ -8,14 +8,13 @@ import faultLogger from '@ohos.faultLogger' ``` - ## FaultType Enumerates the fault types. **System capability**: SystemCapability.HiviewDFX.Hiview.FaultLogger -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | NO_SPECIFIC | 0 | No specific fault type.| | CPP_CRASH | 2 | C++ program crash.| @@ -28,16 +27,16 @@ Defines the data structure of the fault log information. **System capability**: SystemCapability.HiviewDFX.Hiview.FaultLogger -| Name| Type| Description| -| -------- | -------- | -------- | -| pid | number | Process ID of the faulty process.| -| uid | number | User ID of the faulty process.| -| type | [FaultType](#faulttype) | Fault type.| -| timestamp | number | Second-level timestamp when the log was generated.| -| reason | string | Reason for the fault.| -| module | string | Module on which the fault occurred.| -| summary | string | Summary of the fault.| -| fullLog | string | Full log text.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| pid | number | Yes| Process ID of the faulty process.| +| uid | number | Yes| User ID of the faulty process.| +| type | [FaultType](#faulttype) | Yes| Fault type.| +| timestamp | number | Yes| Second-level timestamp when the log was generated.| +| reason | string | Yes| Reason for the fault.| +| module | string | Yes| Module on which the fault occurred.| +| summary | string | Yes| Summary of the fault.| +| fullLog | string | Yes| Full log text.| ## faultLogger.querySelfFaultLog(deprecated) @@ -54,7 +53,7 @@ Obtains the fault information about the current process. This API uses an asynch | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | faultType | [FaultType](#faulttype) | Yes| Fault type.| -| callback | AsyncCallbackArray<Array<[FaultLogInfo](#faultloginfo)>> | Yes| Callback used to return the fault information array.
The value is the fault information array obtained. If the value is **undefined**, an exception occurs during the information retrieval. In this case, an error string will be returned. +| callback | AsyncCallback<Array<[FaultLogInfo](#faultloginfo)>> | Yes| Callback used to return the fault information array.
The value is the fault information array obtained. If the value is **undefined**, an exception occurs during the information retrieval. In this case, an error string will be returned. **Example** @@ -139,11 +138,11 @@ Obtains the fault information about the current process. This API uses an asynch | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | faultType | [FaultType](#faulttype) | Yes| Fault type.| -| callback | AsyncCallbackArray<Array<[FaultLogInfo](#faultloginfo)>> | Yes| Callback used to return the fault information array.
The value is the fault information array obtained. If the value is **undefined**, an exception occurs during the information retrieval. In this case, an error string will be returned. +| callback | AsyncCallback<Array<[FaultLogInfo](#faultloginfo)>> | Yes| Callback used to return the fault information array.
The value is the fault information array obtained. If the value is **undefined**, an exception occurs during the information retrieval. In this case, an error string will be returned. **Error codes** -For details about the error codes, see [faultLogger Error Codes](../errorcodes/errorcode-faultlogger.md). +For details about the error codes, see [FaultLogger Error Codes](../errorcodes/errorcode-faultlogger.md). | ID| Error Message| | --- | --- | @@ -200,7 +199,7 @@ Obtains the fault information about the current process. This API uses a promise **Error codes** -For details about the error codes, see [faultLogger Error Codes](../errorcodes/errorcode-faultlogger.md). +For details about the error codes, see [FaultLogger Error Codes](../errorcodes/errorcode-faultlogger.md). | ID| Error Message| | --- | --- | diff --git a/en/application-dev/reference/errorcodes/Readme-EN.md b/en/application-dev/reference/errorcodes/Readme-EN.md new file mode 100644 index 0000000000000000000000000000000000000000..16157622d51a7b8e0331202c363a3abaa1ab24a2 --- /dev/null +++ b/en/application-dev/reference/errorcodes/Readme-EN.md @@ -0,0 +1,48 @@ +# Error Codes + +- Ability Framework + - [Ability Error Codes](errorcode-ability.md) + - [Distributed Scheduler Error Codes](errorcode-DistributedSchedule.md) +- Bundle Management + - [Bundle Error Codes](errorcode-bundle.md) + - [zlib Error Codes](errorcode-zlib.md) +- UI Page + - [promptAction Error Codes](errorcode-promptAction.md) + - [Router Error Codes](errorcode-router.md) +- Graphics + - [colorSpaceManager Error Codes](errorcode-colorspace-manager.md) + - [Display Error Codes](errorcode-display.md) + - [Window Error Codes](errorcode-window.md) +- Media + - [Audio Error Codes](errorcode-audio.md) + - [AVSession Management Error Codes](errorcode-avsession.md) +- Resource Management + - [I18N Error Codes](errorcode-i18n.md) + - [Resource Manager Error Codes](errorcode-resource-manager.md) +- Resource Scheduling + - [backgroundTaskManager Error Codes](errorcode-backgroundTaskMgr.md) + - [DeviceUsageStatistics Error Codes](errorcode-DeviceUsageStatistics.md) + - [reminderAgentManager Error Codes](errorcode-reminderAgentManager.md) + - [workScheduler Error Codes](errorcode-workScheduler.md) +- Security + - [Ability Access Control Error Codes](errorcode-access-token.md) + - [HUKS Error Codes](errorcode-huks.md) +- Data Management + - [RDB Error Codes](errorcode-data-rdb.md) + - [Preferences Error Codes](errorcode-preferences.md) +- Network Management + - [Upload and Download Error Codes](errorcode-request.md) +- Basic Features + - [FaultLogger Error Codes](errorcode-faultlogger.md) +- Account Management + - [Account Error Codes](errorcode-account.md) + - [App Account Error Codes](errorcode-app-account.md) +- Device Management + - [Device Management Error Codes](errorcode-device-manager.md) + - [Screen Hopping Error Codes](errorcode-multimodalinput.md) + - [Sensor Error Codes](errorcode-sensor.md) + - [Vibrator Error Codes](errorcode-vibrator.md) + - [System Parameter Error Codes](errorcode-system-parameterV9.md) +- Language Base Class Library + - [Buffer Error Codes](errorcode-buffer.md) + - [containers Error Codes](errorcode-containers.md) diff --git a/en/application-dev/reference/errorcodes/errorcode-faultlogger.md b/en/application-dev/reference/errorcodes/errorcode-faultlogger.md index 5270787af4cd2697625975cb442beee5b9a40b4e..9279760c6e3285d2a80d3785e8a91bb40859b3c3 100644 --- a/en/application-dev/reference/errorcodes/errorcode-faultlogger.md +++ b/en/application-dev/reference/errorcodes/errorcode-faultlogger.md @@ -1,4 +1,4 @@ -# faultLogger Error Codes +# FaultLogger Error Codes ## 10600001 Service Faulty or Not Started