1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @addtogroup Web
18  * @{
19  *
20  * @brief Provides APIs for the ArkWeb errors.
21  * @since 12
22  */
23 /**
24  * @file arkweb_error_code.h
25  *
26  * @brief Declares the APIs for the ArkWeb errors.
27  * @kit ArkWeb
28  * @library libohweb.so
29  * @syscap SystemCapability.Web.Webview.Core
30  * @since 12
31  */
32 #ifndef ARKWEB_ERROR_CODE_H
33 #define ARKWEB_ERROR_CODE_H
34 
35 typedef enum ArkWeb_ErrorCode {
36 /** @error Success. */
37 ARKWEB_SUCCESS = 0,
38 
39 /** @error Init error. */
40 ARKWEB_INIT_ERROR = 17100001,
41 
42 /** @error Unknown error. */
43 ARKWEB_ERROR_UNKNOWN = 17100100,
44 
45 /** @error Invalid param. */
46 ARKWEB_INVALID_PARAM = 17100101,
47 
48 /** @error Register custom schemes should be called before create any ArkWeb. */
49 ARKWEB_SCHEME_REGISTER_FAILED = 17100102,
50 
51 /** @error Invalid url. */
52 ARKWEB_INVALID_URL = 17100103,
53 
54 /** @error Invalid cookie value. */
55 ARKWEB_INVALID_COOKIE_VALUE = 17100104,
56 } ArkWeb_ErrorCode;
57 
58 #endif // ARKWEB_ERROR_CODE_H
59