harmony(鸿蒙)containers Error Codes

  • 2022-12-05
  • 浏览 (591)

containers Error Codes

10200012 Constructor Calling Failure

Error Message

The {className}’s constructor cannot be directly invoked.

Description

A constructor of the containers class is called directly to create an instance.

Possible Causes

The constructors of the containers class cannot be directly called. The keyword new must be used.

Solution

Use the keyword new to create an instance.

10200011 Passed this object Is Not an Instance of the containers Class

Error Message

The {methodName} method cannot be bound.

Description

this object passed in the API is not an instance of the containers class.

Possible Causes

The APIs of the containers class do not support bind().

Solution

  1. Check whether bind() is used to call the API.
  2. Check whether an object that is not a container instance is assigned to the API.

10200001 Invalid Parameter Value

Error Message

The parameter value is out of range.

Description

The value of a parameter passed in the API exceeds the valid range.

Possible Causes

The parameter value is out of range.

Solution

Use a value within the range.

10200010 Empty Container

Error Message

The container is empty.

Description

The container to be operated is empty.

Possible Causes

The container is empty.

Solution

Add elements to the container first.

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Error Codes

harmony(鸿蒙)Event Error Codes

harmony(鸿蒙)DeviceUsageStatistics Error Codes

harmony(鸿蒙)DistributedNotificationService Error Codes

harmony(鸿蒙)Distributed Scheduler Error Codes

harmony(鸿蒙)Ability Error Codes

harmony(鸿蒙)Ability Access Control Error Codes

harmony(鸿蒙)Accessibility Error Codes

harmony(鸿蒙)Account Error Codes

harmony(鸿蒙)App Account Error Codes

0  赞