harmony 鸿蒙Universal Error Codes

  • 2025-06-12
  • 浏览 (5)

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙OpenHarmony Docker镜像

harmony 鸿蒙OpenHarmony Docker Image

harmony 鸿蒙Legal Notices

harmony 鸿蒙OpenHarmony Project

harmony 鸿蒙IDL Specifications and User Guide (for System Applications Only)

harmony 鸿蒙Application Development

harmony 鸿蒙Accessibility Kit

harmony 鸿蒙Introduction to Accessibility Kit

0  赞