目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

201 Permission Verification Failed

Message: Permission denied.

Description: Permission verification failed.

Possible causes: The ohos.permission.KEEP_BACKGROUND_RUNNING permission is not configured.

Solution: Configure the related permission and try again.

401 Parameter Check Failed

Message: Parameter error.

Description: Parameter check error.

Possible causes: A mandatory parameter is not passed, or a parameter type is incorrect.

Solution: Check whether mandatory parameters are passed and whether the parameter types are correct.

1010600011 Initialization Failed

Message: Initialize failed.

Description: TextReader initialization failed.

Possible causes: The TextReader fails to be initialized in the TTS engine or player.

Solution: You are advised to submit a ticket online.

1010600012 Not Initialized

Message: The TextReader is not initialized.

Description: The TextReader is not initialized.

Possible causes: The TextReader is not initialized.

Solution: Call the init method to initialize the TextReader.

1010600013 TTS Audio Synthesis Error

Message: Text-to-speech engine error.

Description: TTS audio synthesis error.

Possible causes: The audio synthesis in the TTS engine is abnormal.

Solution: You are advised to submit a ticket online.

1010600014 Player Error

Message: AudioRenderer play error.

Description: A player error occurs.

Possible causes: The AudioRenderer player is abnormal.

Solution: You are advised to submit a ticket online.

1010600015 Decoding Error

Message: Audio decode error.

Description: Decoding error.

Possible causes: Audio decoding in the TTS engine fails.

Solution: You are advised to submit a ticket online.

1010600016 Media Controller Synchronization Error

Message: AVSession error.

Description: Media controller synchronization error.

Possible causes: An error occurs when the AVSession media controller synchronizes the cover image or playback status.

Solution: You are advised to submit a ticket online.

1010600017 Other Errors

Message: Other error.

Description: Another error occurs.

Possible causes: Another error occurs.

Solution: You are advised to submit a ticket online.

1010600018 Failed to Play the Previous Track

Message: Play the previous failed.

Description: Failed to play the previous track.

Possible causes: Data is abnormal.

Solution: You are advised to submit a ticket online.

1010600019 Failed to Play the Next Track

Message: Play the next failed.

Description: Failed to play the next track.

Possible causes: Data is abnormal.

Solution: You are advised to submit a ticket online.

1010600020 Abnormal Release

Message: Release error.

Description: Failed to release the TextReader.

Possible causes: Resources may fail to be released.

Solution: You are advised to submit a ticket online.

1012900010 AICaption Service Is Busy

Message: AI caption service is busy.

Description: The AICaption service is busy.

Possible causes: The AICaption service is busy.

Solution: You are advised to submit a ticket online.

1012900011 AICaption Controller Initialization Failed

Message: AI caption controller initialized failed.

Description: AICaption controller initialization failed.

Possible causes: The AICaption controller fails to be initialized.

Solution: You are advised to submit a ticket online.

1012900012 Audio Recognition Failed

Message: Audio recognition failed.

Description: Audio recognition failed.

Possible causes: An error occurs because the AICaption audio recognition fails.

Solution: You are advised to submit a ticket online.