openharmony 鸿蒙 changelogs-container

2023-02-03 浏览 (669)

Common Library Subsystem Changelog

Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.1 (MR) has the following API changes in the common library subsystem.

cl.utils.1 Error Code and Information Change

The error codes and information returned by APIs of the ArrayList, List, LinkedList, Stack, Queue, Deque, PlainArray, LightWeightMap, LightWeightSet, HashMap, HashSet, TreeMap, and TreeSet classes are changed.

For details about the changed error codes, see Utils Error Codes.

No adaptation is required for applications developed using these APIs.

Key API/Component Changes

Error code information is redefined for APIs in these classes and marked using '@throws' in the *.d.ts file of the corresponding module.

The sample code is as follows:

ArrayList class before the change:

constructor();

ArrayList class after the change:

@throws { BusinessError } 10200012 - The ArrayList's constructor cannot be directly invoked. constructor();

Change Impact

None

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 changelogs-time

openharmony 鸿蒙 changelog-LocalStorage

openharmony 鸿蒙 changelogs-url

openharmony 鸿蒙 changelogs-distributeddatamgr

openharmony 鸿蒙 changelogs-multimedia

openharmony 鸿蒙 changelogs-notification

openharmony 鸿蒙 changelogs-ability

openharmony 鸿蒙 changelog-security

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/dd19973f5d3d41c8a68c0a4362212319