• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  * @library libohweb.so
28  * @syscap SystemCapability.Web.Webview.Core
29  * @since 12
30  */
31 #ifndef ARKWEB_ERROR_CODE_H
32 #define ARKWEB_ERROR_CODE_H
33 
34 typedef enum ArkWeb_ErrorCode {
35 /** @error Unknown error. */
36 ARKWEB_ERROR_UNKNOWN = 17100100,
37 
38 /** @error Invalid param. */
39 ARKWEB_INVALID_PARAM = 17100101,
40 
41 /** @error Register custom schemes should be called before create any ArkWeb. */
42 ARKWEB_SCHEME_REGISTER_FAILED = 17100102,
43 } ArkWeb_ErrorCode;
44 
45 #endif // ARKWEB_ERROR_CODE_H
46