• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# arkweb_error_code.h
2
3## Overview
4
5Declares the error codes of the ArkWeb NDK APIs.
6
7**Library**: libohweb.so
8
9**System capability**: SystemCapability.Web.Webview.Core
10
11**Since**: 12
12
13**Related module**: [Web](capi-web.md)
14
15## Summary
16
17### Enums
18
19| Name                                   | typedef Keyword| Description|
20|---------------------------------------|------------|----|
21| [ArkWeb_ErrorCode](#arkweb_errorcode) | ArkWeb_ErrorCode  | Enumerates the error codes of ArkWeb NDK APIs. |
22
23## Enum Description
24
25### ArkWeb_ErrorCode
26
27```
28enum ArkWeb_ErrorCode
29```
30
31**Description**
32
33Enumerates the error codes of ArkWeb NDK APIs.
34
35**Since**: 12
36
37| Enum Item                                    | Description                                               |
38| ------------------------------------------ | --------------------------------------------------- |
39| ARKWEB_SUCCESS = 0                         | Operation successful.                                             |
40| ARKWEB_INIT_ERROR = 17100001               | Initialization error.                                       |
41| ARKWEB_ERROR_UNKNOWN = 17100100            | Unknown error.                                         |
42| ARKWEB_INVALID_PARAM = 17100101            | Invalid parameter.                                         |
43| ARKWEB_SCHEME_REGISTER_FAILED = 17100102   | Failed to register the scheme. Register the scheme before creating the **Web** component.   |
44| ARKWEB_INVALID_URL = 17100103 = 17100104   | Invalid URL.                                        |
45| ARKWEB_INVALID_COOKIE_VALUE = 17100104     | Invalid cookie value.                                   |
46| ARKWEB_LIBRARY_OPEN_FAILURE = 17100105     | Failed to open the dynamic link library.<br>**Since**: 15          |
47| ARKWEB_LIBRARY_SYMBOL_NOT_FOUND = 17100106 | The required symbol cannot be found in the dynamic link library.<br>**Since**: 15|
48| ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED = 17100107 | **CookieManager** is not initialized.<br>**Since**: 20|
49| ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED = 17100108 | **CookieManager** fails to be initialized.<br>**Since**: 20|
50| ARKWEB_COOKIE_SAVE_FAILED = 17100109 | Cookies fail to be saved.<br>**Since**: 20|
51
52### ArkWeb_BlanklessErrorCode
53
54```
55enum ArkWeb_BlanklessErrorCode
56```
57
58**Description**
59
60Enumerates the error codes for the blankless loading.
61
62**Since**: 20
63
64| Enum Item                                    | Description                                               |
65| ------------------------------------------ | --------------------------------------------------- |
66| ARKWEB_BLANKLESS_SUCCESS = 0               | Operation successful.                                              |
67| ARKWEB_BLANKLESS_ERR_UNKNOWN = -1          | Unknown error or internal status error.                            |
68| ARKWEB_BLANKLESS_ERR_INVALID_ARGS = -2     | Invalid parameter.                                         |
69| ARKWEB_BLANKLESS_ERR_CONTROLLER_NOT_INITED = -3 | **WebViewController** is not bound to any component.                      |
70| ARKWEB_BLANKLESS_ERR_KEY_NOT_MATCH = -4    | The key value is not matched. The **OH_NativeArkWeb_SetBlanklessLoadingWithKey** and **OH_NativeArkWeb_GetBlanklessInfoWithKey** APIs must be used in pair and use the same key value.|
71| ARKWEB_BLANKLESS_ERR_SIGNIFICANT_CHANGE = -5 | When the similarity is low, the system will deem the scene change too abrupt and frame insertion through the **OH_NativeArkWeb_SetBlanklessLoadingWithKey** API will fail.|
72| ARKWEB_BLANKLESS_ERR_DEVICE_NOT_SUPPORT = 801 | This device does not support this feature.|
73