harmony 鸿蒙Event Error Codes

  • 2022-12-22
  • 浏览 (471)

Event Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

1500001 Want Action Is Null

Error Message

The action field in the want parameter is null.

Description

This error code is reported when the Action attribute in the want object is null for the event to send.

Possible Causes

The Action attribute in the want object is null for the event to send.

Solution

Make sure the Action attribute in the want object is not null.

1500002 Failed to Send Common Events from a Sandbox Application

Error Message

A sandbox application cannot send common events.

Description

This error code is reported when an attempt is made to send a common event from a sandbox application.

Possible Causes

Common events from a sandbox application are blocked.

Solution

Check whether the application used to send a common event is a sandbox application. If so, switch to another application.

1500003 Event Sending Frequency Is Too High

Error Message

Too many common events are send in a short period of time.

Description

This error code is reported when the application sends common events too frequently.

Possible Causes

The number of common events sent by the application in a given time frame has reached the maximum.

Solution

Do not send common events too frequently.

1500004 Failed to Send System Common Events

Error Message

A third-party application cannot send system common events.

Description

This error code is reported when the application cannot send system common events.

Possible Causes

The application is not a system application or system service.

Solution

Make sure the application to send system common events is a system application or system service.

1500005 Subscriber Not Found

Error Message

The subscriber is not found.

Description

This error code is reported when the subscriber cannot be found.

Possible Causes

The subscriber is deleted.

Solution

Check whether the subscription has already been canceled. If the subscription has been canceled, the subscriber is deleted.

1500006 Invalid User ID

Error Message

Invalid userId.

Description

This error code is reported when the user ID is invalid.

Possible Causes

The user ID is different from the system user ID, or the application is not a system application or system service.

Solution 1. Make sure the current user ID is the same as the system user ID. 2. Make sure the application is a system application or system service.

1500007 Failed to Send a Request Through IPC

Error Message

Failed to send the message.

Description

This error code is reported when the attempt to send a request through IPC fails.

Possible Causes

The connection object fails to be created.

Solution

Do not set up connections frequently. Try again later.

1500008 Failed to Read Data

Error Message

Failed to read the data.

Description

This error code is reported when an error occurs on the server.

Possible Causes

A service exception occurs when the server processes data.

Solution

Try again later.

1500009 System Error

Error Message

System error.

Description

This error code is reported when an exception occurs in the system during service processing, for example, when the current system time fails to be obtained.

Possible Causes

A system fault occurs.

Solution

Try again later.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Error Codes

harmony 鸿蒙DeviceUsageStatistics Error Codes

harmony 鸿蒙DistributedNotificationService Error Codes

harmony 鸿蒙Distributed Scheduler Error Codes

harmony 鸿蒙Ability Error Codes

harmony 鸿蒙Access Control Error Codes

harmony 鸿蒙Accessibility Error Codes

harmony 鸿蒙Account Management Error Codes

harmony 鸿蒙Animator Error Codes

harmony 鸿蒙Audio Error Codes

0  赞