errorcode-ability.md 15.9 KB
Newer Older
G
Gloria 已提交
1 2
# Ability Error Codes

3 4 5 6
> **NOTE**
>
> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).

G
Gloria 已提交
7 8 9 10
## 16000001 Ability Name Does Not Exist

**Error Message**

G
Gloria 已提交
11
Incorrect Ability name. The specified Ability name does not exist.
G
Gloria 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

**Description**

This error code is reported when the specified ability name does not exist.

**Possible Causes**

The ability to query does not exist.

**Solution**

1. Check whether the bundle name is correct.
2. Check whether the ability name corresponding to the bundle name is correct.

## 16000002 Incorrect Ability Type

**Error Message**

G
Gloria 已提交
30
Incorrect Ability type.
G
Gloria 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

**Description**

This error code is reported when the ability type invoked by the API is incorrect.

**Possible Causes**

The ability with the specified type does not support the API invocation.

**Solution**

1. Check whether the ability name corresponding to the bundle name is correct.
2. Call the supported APIs based on the ability type.

## 16000003 Nonexistent ID

**Error Message**

G
Gloria 已提交
49
Input error. The specified ID does not exist.
G
Gloria 已提交
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

**Description**

This error code is reported when the specified ID does not exist.

**Possible Causes**

The target with the specified ID does not exist.

**Solution**

Use the correct ID.

## 16000004 Visibility Verification Failure

**Error Message**

Visibility verification failed.

**Description**

This error code is reported when the application fails visibility verification.

**Possible Causes**

Visibility verification fails.

**Solution**

Check whether the application meets the visibility restriction of the started application.

## 16000006 Cross-User Operation Is Not Allowed

**Error Message**

G
Gloria 已提交
85
Cross-user operations are not allowed.
G
Gloria 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102

**Description**

This error code is reported when an application tries to perform a cross-user operation.

**Possible Causes**

The application initiates a cross-user operation.

**Solution**

Do not perform a cross-user operation.

## 16000007 Service Busy

**Error Message**

G
Gloria 已提交
103
Service busy, please wait and try again.
G
Gloria 已提交
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120

**Description**

This error code is reported when the service requested is busy.

**Possible Causes**

The service is busy.

**Solution**

Try again later.

## 16000008 Crowdtesting Application Expires

**Error Message**

G
Gloria 已提交
121
Crowdtest App Expired.
G
Gloria 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

**Description**

This error code is reported when users try to open a crowdtesting application that has expired.

**Possible Causes**

The crowdtesting application has expired.

**Solution**

Check whether the crowdtesting application has expired.

## 16000009 Ability Start or Stop Failure in Wukong Mode

**Error Message**

G
Gloria 已提交
139
Ability cannot be started or sotpped in Wukong mode.
G
Gloria 已提交
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156

**Description**

This error code is returned when the application tries to start or stop an ability in Wukong mode.

**Possible Causes**

An ability cannot be started or stopped in Wukong mode.

**Solution**

Do not start or stop an ability in Wukong mode.

## 16000010 Continuation Flag Forbidden

**Error Message**

G
Gloria 已提交
157
The call with the continuation flag is forbidden.
G
Gloria 已提交
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174

**Description**

This error code is reported when the API call carries the continuation flag.

**Possible Causes**

The continuation flag is not allowed for the API call.

**Solution**

Remove the continuation flag.

## 16000011 Nonexistent Context

**Error Message**

G
Gloria 已提交
175
The context does not exist.
G
Gloria 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188

**Description**

This error code is reported when the specified context does not exist.

**Possible Causes**

The context passed in the API does not exist.

**Solution**

Use the correct context.

189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
## 16000017 Waiting for the Previous Abilities to Finish Startup

**Error Message**

The previous ability is starting, wait start later.

**Description**

Too many abilities need to be started. Due to the limited processing capability of the system, the requests are cached in the queue and processed in sequence.

**Possible Causes**

The system has a large number of concurrent requests.

**Solution**

No action is required. Wait for the previous abilities to finish startup.

G
Gloria 已提交
207
## 16000050 Internal Error
G
Gloria 已提交
208 209 210

**Error Message**

G
Gloria 已提交
211
Internal error.
G
Gloria 已提交
212 213 214 215 216 217 218 219 220 221 222

**Description**

This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.

**Possible Causes**

Common kernel errors such as memory application and multi-thread processing errors occur.

**Solution**

223
Ensure sufficient system memory.
G
Gloria 已提交
224 225 226 227 228

## 16000051 Network Error

**Error Message**

G
Gloria 已提交
229
Network error.
G
Gloria 已提交
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246

**Description**

This error code is reported when the network is abnormal.

**Possible Causes**

The network is unavailable.

**Solution**

Try again later or reconnect to the network.

## 16000052 Installation-Free Is Not Supported

**Error Message**

G
Gloria 已提交
247
Installation-free is not supported.
G
Gloria 已提交
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264

**Description**

This error code is reported when the application does not support installation-free.

**Possible Causes**

The application package does not meet the installation-free requirements. For example, the package is too large.

**Solution**

Check whether the application supports installation-free.

## 16000053 Ability Is Not on Top

**Error Message**

G
Gloria 已提交
265
The ability is not on the top of UI.
G
Gloria 已提交
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282

**Description**

This error code is reported when the ability is not displayed on the top of the UI.

**Possible Causes**

The ability is not displayed on the top of the UI.

**Solution**

Ensure that the ability is displayed on the top of the UI.

## 16000054 Installation-Free Busy

**Error Message**

G
Gloria 已提交
283
Installation-free service is busy, please wait and try again later.
G
Gloria 已提交
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300

**Description**

This error code is reported when the installation-free service is busy.

**Possible Causes**

Another installation-free task is in progress.

**Solution**

Try again later.

## 16000055 Installation-Free Timeout

**Error Message**

G
Gloria 已提交
301
Installation-free time out.
G
Gloria 已提交
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318

**Description**

This error code is reported when the installation-free task times out.

**Possible Causes**

Installation-free times out.

**Solution**

Try again later.

## 16000056 Installation-Free Is Not Allowed for Other Applications

**Error Message**

G
Gloria 已提交
319
Installation-free is not allowed for other applications.
G
Gloria 已提交
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336

**Description**

This error code is reported when users try to apply installation-free for other applications.

**Possible Causes**

Installation-free is allowed only for the current application.

**Solution**

Apply installation-free only for the current application.

## 16000057 Cross-Device Installation-Free Is Not Supported

**Error Message**

G
Gloria 已提交
337
Cross-device installation-free is not supported.
G
Gloria 已提交
338 339 340 341 342 343 344 345 346 347 348 349 350

**Description**

This error code is reported when users try to apply installation-free across devices.

**Possible Causes**

Cross-device installation-free is not supported.

**Solution**

Use installation-free on the same device.

351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404
## 16000058 Specified URI Flag Is Invalid

**Error Message**

Invalid URI flag.

**Description**

This error code is reported when the specified URI flag is invalid.

**Possible Causes**

An incorrect parameter is passed in.

**Solution**

Pass in a valid URI flag.

## 16000059 Specified URI Type Is Invalid

**Error Message**

Invalid URI type.

**Description**

This error code is reported when the specified URI type is invalid.

**Possible Causes**

An incorrect parameter is passed in. Currently, URI authorization management supports only URIs of the file type.

**Solution**

Ensure that the input parameter is of the supported URI type.

## 16000060 Sandbox Applications Cannot Authorize URIs

**Error Message**

Sandbox application can not grant URI permission.

**Description**

This error code is reported when a sandbox application authorizes a URI.

**Possible Causes**

Sandbox applications cannot authorize URIs.

**Solution**

Use a non-sandbox application.

G
Gloria 已提交
405 406 407 408
## 16000101 shell Command Failure

**Error Message**

G
Gloria 已提交
409
Failed to run the shell command.
G
Gloria 已提交
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426

**Description**

This error code is reported when the command is not a valid shell command.

**Possible Causes**

The command is not a valid shell command.

**Solution**

Use a valid shell command.

## 16000151 Invalid wantAgent Object

**Error Message**

G
Gloria 已提交
427
Invalid wantAgent object.
G
Gloria 已提交
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444

**Description**

This error code is reported when the **wantAgent** object passed in the API is invalid.

**Possible Causes**

The **wantAgent** object is invalid.

**Solution**

Pass a valid **wantAgent** object in the API.

## 16000152 wantAgent Object Does Not Exist

**Error Message**

G
Gloria 已提交
445
the wantAgent object does not exist.
G
Gloria 已提交
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462

**Description**

This error code is reported when the **wantAgent** object passed in the API does not exist.

**Possible Causes**

The **wantAgent** object does not exist.

**Solution**

Pass a valid **wantAgent** object in the API.

## 16000153 wangAgent Object Canceled

**Error Message**

G
Gloria 已提交
463
wangAgent object has been canceled.
G
Gloria 已提交
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480

**Description**

This error code is reported when the **wangAgent** object passed in the API has been canceled.

**Possible Causes**

The **wantAgent** object has been canceled.

**Solution**

Pass a valid **wantAgent** object in the API.

## 16100001 Ability of the Specified URI Does Not Exist

**Error Message**

G
Gloria 已提交
481
The ability with the specified URI does not exist.
G
Gloria 已提交
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498

**Description**

This error code is reported when the ability with the specified URI does not exist.

**Possible Causes**

The ability to query does not exist.

**Solution**

Check the ability with the specified URI.

## 16100002 Incorrect Ability Type

**Error Message**

G
Gloria 已提交
499
Incorrect ability type.
G
Gloria 已提交
500 501 502 503 504 505 506

**Description**

This error code is reported when the ability type invoked by the API is incorrect.

**Possible Causes**

G
Gloria 已提交
507
The ability with the specified type does not support the API invocation.
G
Gloria 已提交
508 509 510 511 512 513 514 515 516 517

**Solution**

1. Check whether the ability name corresponding to the bundle name is correct.
2. Call the supported APIs based on the ability type.

## 16200001 Caller Released

**Error Message**

G
Gloria 已提交
518
The caller has been released.
G
Gloria 已提交
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535

**Description**

This error code is reported when the caller has been released.

**Possible Causes**

The caller has been released.

**Solution**

Register a valid caller again.

## 16200002 Invalid Callee

**Error Message**

G
Gloria 已提交
536
The callee does not exist.
G
Gloria 已提交
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571

**Description**

This error code is reported when the callee is invalid.

**Possible Causes**

The callee does not exist.

**Solution**

Use a valid callee.

## 16200003 Release Failure

**Error Message**

Release error. The caller does not call any callee.

**Description**

This error code is reported when the release fails.

**Possible Causes**

The caller is not registered with a callee.

**Solution**

Check whether the caller has registered.

## 16200004 Method Registered

**Error Message**

G
Gloria 已提交
572
The method has registered.
G
Gloria 已提交
573 574 575

**Description**

G
Gloria 已提交
576
This error code is reported when the method has been registered.
G
Gloria 已提交
577 578 579 580 581 582 583 584 585 586 587 588 589

**Possible Causes**

The method has been registered by the callee.

**Solution**

Check whether the method has been registered.

## 16200005 Method Not Registered

**Error Message**

G
Gloria 已提交
590
The method is not registered.
G
Gloria 已提交
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607

**Description**

This error code is reported when the method has not been registered.

**Possible Causes**

The method has not been registered by the callee.

**Solution**

Check whether the method has been registered.

## 16300001 Nonexistent Mission

**Error Message**

G
Gloria 已提交
608
The specified mission id does not exist.
G
Gloria 已提交
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625

**Description**

This error code is reported when the specified mission does not exist.

**Possible Causes**

The mission does not exist.

**Solution**

Check the mission ID.

## 16300002 Nonexistent Mission Listener

**Error Message**

G
Gloria 已提交
626
The specified mission listener does not exist.
G
Gloria 已提交
627 628 629 630 631 632 633 634 635 636 637 638 639

**Description**

This error code is reported when the specified mission listener does not exist.

**Possible Causes**

The mission listener does not exist.

**Solution**

Check the mission listener ID.

G
Gloria 已提交
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657
## 16300003 Target Application Is Not the Invoker Application

**Error Message**

The target application is not self application.

**Description**

This error code is reported when the application to start is not the application that calls the API.

**Possible Causes**

The application to start and the invoker application are not the same application.

**Solution**

Ensure that the application to start is the invoker application.

G
Gloria 已提交
658 659 660 661
## 18500001 Invalid Bundle Name

**Error Message**

G
Gloria 已提交
662
Invalid bundle name.
G
Gloria 已提交
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679

**Description**

This error code is reported when the specified bundle name is invalid.

**Possible Causes**

The bundle does not exist or is not installed.

**Solution**

Check whether the bundle has been installed.

## 18500002 Invalid Patch Package

**Error Message**

G
Gloria 已提交
680
Invalid patch package.
G
Gloria 已提交
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698

**Description**

This error code is returned when the specified patch package is invalid.

**Possible Causes**

The patch package does not exist or is inaccessible.

**Solution**

1. Check whether the path of the patch package is valid.
2. Check whether the application has the permission to access the patch package.

## 18500003 Patch Deployment Failure

**Error Message**

G
Gloria 已提交
699
Failed to deploy the patch.
G
Gloria 已提交
700 701 702 703 704 705 706 707 708 709 710 711 712

**Description**

This error code is reported when the patch package fails to be deployed.

**Possible Causes**

1. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**.
2. The HAP corresponding to the bundle name is not installed.
3. The values of **bundleName** and **versionCode** are different from those of the installed HAP. If the **type** field is set to **patch**, the values of **versionName**, **bundleName**, and **versionCode** are different from those of the installed HAP.
4. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package.
5. If the **type** field is set to **patch**, the signature information is different from that of the application.
6. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use.
G
Gloria 已提交
713
7. If the **type** field is set to **hotreload** and a debug version is to be installed, a **patch** package is in use. If the **type** field is set to **hotreload**, a release version is to be installed.
G
Gloria 已提交
714 715 716 717 718 719 720 721 722

**Solution**

Check whether the patch package complies with the deployment rules.

## 18500004 Patch Package Enablement Failure

**Error Message**

G
Gloria 已提交
723
Failed to enable the patch package.
G
Gloria 已提交
724 725 726 727 728 729 730

**Description**

This error code is reported when the patch package fails to be enabled.

**Possible Causes**

G
Gloria 已提交
731
The patch package is in an incorrect state.
G
Gloria 已提交
732 733 734 735 736 737 738 739 740

**Solution**

Check the state of the patch package.

## 18500005 Patch Package Deletion Failure

**Error Message**

G
Gloria 已提交
741
Failed to enable the patch package.
G
Gloria 已提交
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758

**Description**

This error code is reported when the patch package fails to be deleted.

**Possible Causes**

The patch package is in an incorrect state.

**Solution**

Check the state of the patch package.

## 18500006 Patch Installation Failure

**Error Message**

G
Gloria 已提交
759
Failed to load the patch.
G
Gloria 已提交
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776

**Description**

This error code is reported when the patch fails to be installed.

**Possible Causes**

The Ark engine fails to install the patch.

**Solution**

Check whether the patch package is correct.

## 18500007 Patch Uninstall Failure

**Error Message**

G
Gloria 已提交
777
Failed to unload the patch.
G
Gloria 已提交
778 779 780

**Description**

G
Gloria 已提交
781
This error code is reported when the Ark engine fails to uninstall the patch.
G
Gloria 已提交
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798

**Possible Causes**

The Ark engine fails to uninstall the patch.

**Solution**

Check whether the patch package is correct.

## 18500008 Internal Error

**Error Message**

Internal error.

**Description**

G
Gloria 已提交
799
This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
G
Gloria 已提交
800 801 802 803 804 805 806

**Possible Causes**

Common kernel errors such as memory application and multi-thread processing errors occur.

**Solution**

807
Ensure sufficient system memory.
G
Gloria 已提交
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825

## 18500009 Application Has a Quick Fix Task Being Processed

**Error Message**

The application has a apply quick fix task that is being processed.

**Description**

This error code is reported when the application has a quick fix task that is under processing.

**Possible Causes**

When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing.

**Solution**

Wait until the quick fix task is complete.