diff --git a/zh-cn/application-dev/reference/apis-asset-store-kit/js-apis-asset.md b/zh-cn/application-dev/reference/apis-asset-store-kit/js-apis-asset.md index 81062d344f12136c67a7035e84dbb68514a69aa0..643bc21bb5c56d2c1773790af050a4a276d3df1a 100755 --- a/zh-cn/application-dev/reference/apis-asset-store-kit/js-apis-asset.md +++ b/zh-cn/application-dev/reference/apis-asset-store-kit/js-apis-asset.md @@ -859,3 +859,31 @@ type AssetMap = Map\ | ----------- | ---- | ---------------------------- | | OVERWRITE | 0 | 覆盖原有的关键资产。 | | THROW_ERROR | 1 | 抛出异常,由业务进行后续处理。 | + +## AssetErrorCode + +表示错误码的枚举。 + +**系统能力:** SystemCapability.Security.Asset + +| 名称 | 值 | 说明 | +| -------------------------- | ----- | ---- | +| PERMISSION_DENIED | 201 |The caller doesn't have the permission.| +| INVALID_ARGUMENT | 401 |The argument is invalid.| +| SERVICE_UNAVAILABLE | 24000001 |The ASSET service is unavailable.| +| NOT_FOUND | 24000002 |The asset is not found.| +| DUPLICATED | 24000003 |The asset already exists.| +| ACCESS_DENIED | 24000004 |Access to the asset is denied.| +| STATUS_MISMATCH | 24000005 |The screen lock status does not match.| +| OUT_OF_MEMORY | 24000006 |Insufficient memory.| +| DATA_CORRUPTED | 24000007 |The asset is corrupted.| +| DATABASE_ERROR | 24000008 |The database operation failed.| +| CRYPTO_ERROR | 24000009 |The cryptography operation failed.| +| IPC_ERROR | 24000010 |IPC failed.| +| BMS_ERROR | 24000011 |Calling the Bundle Manager service failed.| +| ACCOUNT_ERROR | 24000012 |Calling the OS Account service failed.| +| ACCESS_TOKEN_ERROR | 24000013 |Calling the Access Token service failed.| +| FILE_OPERATION_ERROR | 24000014 |The file operation failed.| +| GET_SYSTEM_TIME_ERROR | 24000015 |Getting the system time failed.| +| LIMIT_EXCEEDED | 24000016 |The cache exceeds the limit.| +| UNSUPPORTED | 24000017 |The capability is not supported.| \ No newline at end of file