目录

ArkTS API Error Codes

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

1014000001 Operation Not Allowed

Message

Operation not permitted

Description

The operation is not allowed.

Possible causes

The caller does not have the permission to access the URI or path.

Solution

  1. Use FilePicker to select the user file to obtain the temporary URI permission.

  2. Request user authorization through the program access control mechanism to obtain the directory permission.

1014000002 No Such File or Directory

Message

No such file or directory

Description

The file or directory does not exist.

Possible causes

  1. The file or directory does not exist.

  2. The caller has no permission to access the file or directory.

Solution

  1. Ensure that the file path exists.

  2. Ensure that the caller has the permission to access the file or directory.

1014000003 Insufficient Storage Space

Message

No space left on device

Description

Insufficient storage space.

Possible causes

Insufficient storage space.

Solution

Clear the device storage space.

1014000004 Internal System Error

Message

System inner fail

Description

Internal system error.

Possible causes

An error occurs in the system.

Solution

Restart the device, or submit a ticket online.

1014000005 Invalid Shortcut File

Message

Invalid shortcut file

Description

The shortcut file is invalid.

Possible causes

The URI or content of the shortcut file is incorrect. As a result, the file cannot be correctly parsed.

Solution

Pass a valid shortcut file URI.