diff --git a/en/application-dev/onlyfortest/reference/apis-ads-kit/errorcode-ads.md b/en/application-dev/onlyfortest/reference/apis-ads-kit/errorcode-ads.md new file mode 100644 index 0000000000000000000000000000000000000000..322505f04d9d74a29a7462f33fd70bd81d982116 --- /dev/null +++ b/en/application-dev/onlyfortest/reference/apis-ads-kit/errorcode-ads.md @@ -0,0 +1,102 @@ +# Ads Service Framework Error Codes + + +> **NOTE** +> +> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). + + +## 21800001 Internal System Error + +**Error Message** + +System internal error. + +**Description** + +This error code is reported if an internal system error occurs. + +**Possible Causes** + +Failed to connect to the OAID service. + +**Procedure** + +Check whether the service is running properly. + + +## 21800003 Ad Loading Failure + +**Error Message** + +Failed to load the ad request. + +**Description** + +This error code is reported if loading the ad fails. + +**Possible Causes** + +The network connection is abnormal, or an ad request parameter is incorrect. + +**Procedure** + +Check the network status, and correct the ad request parameters. + + +## 21800004 Ad Display Failure + +**Error Message** + +Failed to display the ad. + +**Description** + +This error code is reported if displaying the ad fails. + +**Possible Causes** + +The network connection is abnormal. + +**Procedure** + +Check the network status. + + +## 401 Incorrect Ads Request Parameter + +**Error Message** + +Invalid input parameter. Possible causes:1. Mandatory parameters are left unspecified. +2.Incorrect parameter types. 3.Parameter verification failed + +**Description** + +This error code is reported if an ads request parameter is incorrect. + +**Possible Causes** + +Ads request parameters fail the verification. + +**Procedure** + +Check whether the ads request parameters are correct. + + +## 801 Ad Request Failure + +**Error Message** + +Device not support + +**Description** + +This error code is reported when the device supports the target SysCap but does not support a specific API. + +**Possible Causes** + +The device does not support the API. + +**Procedure** + +Check whether the device supports the API. diff --git a/en/application-dev/onlyfortest/reference/apis-mdm-kit/errorcode-enterpriseDeviceManager.md b/en/application-dev/onlyfortest/reference/apis-mdm-kit/errorcode-enterpriseDeviceManager.md new file mode 100644 index 0000000000000000000000000000000000000000..f44577cce5f77b25c3cc7a5f0c2c00522743b5e1 --- /dev/null +++ b/en/application-dev/onlyfortest/reference/apis-mdm-kit/errorcode-enterpriseDeviceManager.md @@ -0,0 +1,288 @@ +# Enterprise Device Management Error Codes + +> **NOTE** +> +> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). + +## 9200001 DeviceAdmin Not Enabled + +**Error Message** + +The application is not an administrator application of the device. + +**Description** + +This error code is reported when the caller is not an enabled device administrator application. + +**Possible Causes** + +The enterprise device management APIs can be called only by a device administrator application that has been enabled. + +**Solution** + +Check whether the caller is a device administrator application that is enabled. + +## 9200002 Permission Denied + +**Error Message** + +The administrator application does not have permission to manage the device. + +**Description** + +This error code is reported when the device administrator application does not have the permission to call the API. + +**Possible Causes** + +A device administrator application calls an API that is accessible only by a super administrator application. + +**Solution** + +Check that the device administrator type enabled for the caller is the same as that required by the API. + +## 9200003 Invalid Administrator Ability Component + +**Error Message** + +The administrator ability component is invalid. + +**Description** + +This error code is reported when the specified device manager ability component is invalid. + +**Possible Causes** + +The specified administrator ability component is invalid due to any of the following causes: +1. The administrator ability component does not exist when the device administrator application is enabled. +2. The administrator ability component is not a valid enterprise administrator ability component. + +**Solution** + +1. Check that the name of the administrator ability component is included in the application bundle when the application is enabled as a device administrator application. +2. Check that the administrator ability component inherits from the **EnterpriseAdminExtensionAbility** component defined by the enterprise device management framework. + +## 9200004 Failed to Enable the Device Administrator Application + +**Error Message** + +Failed to activate the administrator application of the device. + +**Description** + +This error code is reported when an application fails to be enabled as a device administrator application. + +**Possible Causes** + +1. Multiple applications are enabled as the super device administrator application. +2. The application has been enabled as a device administrator application, but the administrator type has changed. +3. Multiple device administrator ability components are enabled for the same application. + +**Solution** + +1. Check that only one super device administrator application exists. +2. Check whether the current application has been enabled as a device administrator with a different device administrator type. If yes, deactivate the device administrator application and try again. +3. Check whether a device administrator ability component has been enabled for the application. Only one device administrator ability component can be enabled for an application. + +## 9200005 Failed to Disable the Device Administrator Application + +**Error Message** + +Failed to deactivate the administrator application of the device. + +**Description** + +This error code is reported when the operation for disabling a device administrator application fails. + +**Possible Causes** + +1. The device administrator application to be disabled has not been enabled. +2. The caller cannot disable other device administrator applications. + +**Solution** + +1. Check that the target device administrator application has been enabled. +2. Check that the specified device administrator ability component of the target device administrator application has been enabled. +3. Check that the device administrator application to be disabled is the caller itself. + +## 9200006 Invalid User ID + +**Error Message** + +The specified user ID is invalid. + +**Description** + +This error code is reported when the specified user ID does not exist or the specified user ID is different from the caller's user ID. + +**Possible Causes** + +1. The user ID specified for setting a user policy does not exist. +2. When the application is not a super device administrator application, the specified user ID is different from the caller's user ID. + +**Solution** + +1. Check that the specified user ID is valid. +2. Check that caller's user ID is the same as the specified user ID. If the application is not a super device administrator application, policies cannot be set across users. + +## 9200007 System Ability Error + +**Error Message** + +The system ability works abnormally. + +**Description** + +This error code is reported when the enterprise device management ability is not working properly. + +**Possible Causes** + +1. The EnterpriseAdminAbility is not started. +2. The RPC object for enterprise device management cannot be obtained. +3. Other abilities, on which the EnterpriseAdminAbility depends, are not started, or the RPC object cannot be obtained. +4. A system exception occurs during the running of EnterpriseAdminAbility. + +**Solution** + +Try again later or restart the device. + +## 9200008 Invalid System Subscription Event + +**Error Message** + +The specified system event is invalid. + +**Description** + +This error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid. + +**Possible Causes** + +The enterprise device management module does not support subscription to the specified event or the specified event is invalid. + +**Solution** + +Check that the specified event is valid and supported by the enterprise device management module. + +## 9200009 Failed to Grant Permissions to an Application + +**Error Message** + +Failed to grant the permission to the application. + +**Description** + +This error code is reported when the super device administrator application fails to grant administrator rights to other applications. + +**Possible Causes** + +The target application is not installed by the administrator. + +**Solution** + +Check that the target application has been installed by the administrator. + +## 9200010 Policy Conflict + +**Error Message** + +A conflict policy has been configured. + +**Description** + +This error code is reported when a conflict policy is being delivered. + +**Possible Causes** + +A conflict policy is defined and to be delivered. + +**Solution** + +Resolve the conflict, and then deliver the policy. + +## 9201001 Failed to Manage the Certificate + +**Error Message** + +Failed to manage the certificate. + +**Description** + +This error code is reported when the super device administrator application fails to install or uninstall a user certificate. + +**Possible Causes** + +The user certificate is incorrect. + +**Solution** + +Check that the user certificate is correct. + +## 9201002 Failed to Install the Application + +**Error Message** + +Failed to install the application. + +**Description** + +This error code is reported when a device administrator application fails to install an enterprise application. + +**Possible Causes** + +1. The application installation path is empty or invalid, or does not exist. +2. The operation attempts to install multiple applications with different bundle names. +3. The application to be installed already exists when the installation parameter flag is 0. +4. The user ID is invalid. + +**Solution** + +1. Check that the application installation path is valid. +2. Check that all the installation parameters are valid. +3. Check that the same application is installed. + +## 9201003 Failed to Add an Account + +**Error Message** + +Failed to add an OS account. + +**Description** + +This error code is reported when an account fails to be added. + +**Possible Causes** + +1. The account already exists. +2. The account name is invalid. +3. The network is not connected when the account is added. +4. The system does not support multiple accounts. + +**Solution** + +1. Check whether the account name exists. If yes, change the account name and try again. +2. Check that the account name is valid. +3. Check that the network is connected when the account is added. + +## 9201004 Update Package Not Exist or Fails to be Parsed + +**Error Message** + +The update packages do not exist or analyzing failed. + +**Description** + +This error code is reported when the enterprise device administrator application fails to notify the system of the package update. + +**Possible Causes** + +1. The system update package does not exist. +2. The verification of the system update package name fails. +3. The system update package fails to be opened. +4. The system update package fails to be parsed. + +**Solution** + +1. Check whether the system update package exists. +2. Check whether the name of the system update package is valid. +3. Check whether the system update package is readable. +4. Check whether the system update package is complete. diff --git a/en/application-dev/onlyfortest/reference/apis-media-kit/errorcode-media.md b/en/application-dev/onlyfortest/reference/apis-media-kit/errorcode-media.md new file mode 100644 index 0000000000000000000000000000000000000000..adc7819dfca5e960cc4f11cc41add8ccd066f9f8 --- /dev/null +++ b/en/application-dev/onlyfortest/reference/apis-media-kit/errorcode-media.md @@ -0,0 +1,134 @@ +# Media Error Codes + +> **NOTE** +> +> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). + +## 5400101 Memory Allocation Failed + +**Error Message** + +No memory. + +**Description** + +Failed to allocate memory. + +**Possible Causes** + +1. The number of instances exceeds 16. +2. The new or malloc process fails, causing a null pointer. + +**Solution** + +Destroy this instance and re-create it. If the re-creation fails, stop related operations. + +## 5400102 Unsupported Operation + +**Error Message** + +Operation not allowed. + +**Description** + +This operation is not allowed. + +**Possible Causes** + +This operation is not allowed in the current state. + +**Solution** + +Switch the instance to the correct state and perform the operation. + +## 5400103 I/O Error + +**Error Message** + +I/O error. + +**Description** + +An I/O error occurs. + +**Possible Causes** + +The data interaction between the media and other modules (graphics, audio, network, HDI, and camera) is abnormal. + +**Solution** + +Ensure that the network is normal, destroy this instance, and re-create it. If the re-creation fails, stop related operations. + +## 5400104 Operation Timeout + +**Error Message** + +Operation timeout. + +**Description** + +The operation timed out. + +**Possible Causes** + +1. The network connection times out. (The default network timeout period is 15 seconds, and the timer starts after the buffered event is reported.) +2. Accessing other modules times out. + +**Solution** + +1. Check whether the network is normal. +2. Destroy this instance and re-create it. If the re-creation fails, stop related operations. + +## 5400105 Play Service Dead + +**Error Message** + +Service died. + +**Description** + +The playback service is dead. + +**Possible Causes** + +The playback service is dead. + +**Solution** + +Destroy this instance and re-create it. If the re-creation fails, stop related operations. + +## 5400106 Format Not Supported + +**Error Message** + +Unsupported format. + +**Description** + +The format is not supported. + +**Possible Causes** + +The file format is not supported. + +**Solution** + +Use a supported format. + +## 5400107 Audio Focus Conflict + +**Error Message** + +Audio interrupted. + +**Description** + +Recording fails due to audio focus conflicts. + +**Possible Causes** + +Another process occupies the audio focus. + +**Solution** + +Destroy the current instance and check whether another process is recording. If you can stop the other process, you can create the current instance again. diff --git a/en/application-dev/onlyfortest/reference/errorcode-universal.md b/en/application-dev/onlyfortest/reference/errorcode-universal.md new file mode 100644 index 0000000000000000000000000000000000000000..cd0ea42f71a47472c8428aad1d583e4aef71969f --- /dev/null +++ b/en/application-dev/onlyfortest/reference/errorcode-universal.md @@ -0,0 +1,73 @@ +# Universal Error Codes + +## 201 Permission Denied + +**Error Message** + +Permission verification failed. The application does not have the permission required to call the API. + +**Description** + +This error code is reported when permission verification fails. + +**Possible Causes** + +The application calls an API without the required permission. + +**Solution** + +Check the permission required to call the API and make sure the application has the permission. + +## 202 Permission Verification Failed for Calling a System API + +**Error Message** + +Permission verification failed. A non-system application calls a system API. + +**Description** + +This error code is reported when a non-system application failed the permission verification. + +**Possible Causes** + +The API called by the application is a system API. + +**Solution** + +Check whether any system API is called. Delete it if any. + +## 401 Parameter Check Failed + +**Error Message** + +Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. + +**Description** + +This error code is reported when a parameter error occurs. Regardless of whether the API is synchronous or asynchronous, this type of error is generally thrown in synchronous mode. + +**Possible Causes** + +The mandatory parameter is not passed in, or the parameter type is invalid. + +**Solution** + +Make sure the mandatory parameter is passed in and the type of the passed parameter is invalid. + +## 801 API Not Supported + +**Error Message** + +Capability not supported. Failed to call the API due to limited device capabilities. + +**Description** + +This error code is reported when the device supports the target SysCap but does not support a specific API. + +**Possible Causes** + +The device does not support the API. + +**Solution** + +Check whether the device supports the API. diff --git a/en/application-dev/website.md b/en/application-dev/website.md index c535f1dcc56a5bed2cfa4b0dc69071e4f7a04414..b29d30d3cdbc89d172b6f80964b20f8a5d8bec61 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -1,8 +1,15 @@ # Application Development - - error-code - - [error-code](reference/apis-media-kit/errorcode-media.md) - - [Universal Error Codes](reference/errorcode-universal.md) - - Parent-node-urlpath-null - - [Ads-Service-Framework-Error-Codes](reference/apis-ads-kit/errorcode-ads.md) +- Test-urlpath + - urlpath-Normal + - errorCode + - [error-code](onlyfortest/reference/apis-media-kit/errorcode-media.md) + - errorCode + - [Universal Error Codes](onlyfortest/reference/errorcode-universal.md) - Parent-node-urlpath-illegal - - [Enterprise-Device-Management-Error-Codes](reference/apis-mdm-kit/errorcode-enterpriseDeviceManager.md) \ No newline at end of file + - errorCode + - errorCode + - [Enterprise-Device-Management-Error-Codes](onlyfortest/reference/apis-mdm-kit/errorcode-enterpriseDeviceManager.md) + - Parent-node-urlpath-null + - errorCode + - errorCode + - [Ads-Service-Framework-Error-Codes](onlyfortest/reference/apis-ads-kit/errorcode-ads.md) \ No newline at end of file