harmony 鸿蒙ChangeLog of JS API Changes in the commonlibrary Subsystem

  • 2023-02-03
  • 浏览 (460)

ChangeLog of JS API Changes in the commonlibrary Subsystem

Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.1(Mr) has the following API changes in the commonlibrary subsystem.

cl.commonlibrary.1 Error Code and Information Change

Changed error codes and information returned by APIs of the ArrayList, List, LinkedList, Stack, Queue, Deque, PlainArray, LightWeightMap, LightWeightSet, HashMap, HashSet, TreeMap, and TreeSet classes in the commonlibrary subsystem.

For details about the changed error codes, see error codes of language basic class libraries.

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 Impacts

None

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI Subsystem LocalStorage Class ChangeLog

harmony 鸿蒙Security Subsystem ChangeLog

harmony 鸿蒙Ability Subsystem Changelog

harmony 鸿蒙ChangeLog of JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙cl.multimedia.av_session.001 Change of All av_session APIs to System APIs

harmony 鸿蒙Common Event and Notification Subsystem ChangeLog

harmony 鸿蒙Time Subsystem ChangeLog

harmony 鸿蒙Common Library Subsystem Changelog

0  赞