• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (c) 2025 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 #ifndef ERROR_CODE_H
17 #define ERROR_CODE_H
18 enum ErrorCode {
19     PERMISSION_ERROR = 201,
20     PARAMETER_ERROR = 401,
21     VERSION_ERROR = 801,
22     SYSTEM_ABILITY_NOT_FOUND = 11400101,
23     HAVA_ALREADY_TRACE = 11400102,
24     WITHOUT_WRITE_PERMISSON = 11400103,
25     SYSTEM_STATUS_ABNORMAL = 11400104,
26     NO_CAPTURE_TRACE_RUNNING = 11400105,
27 };
28 
29 enum DumpRawHeapErrors {
30     QUOTA_EXCEEDED = 11400106,
31     FORK_FAILED = 11400107,
32     FAILED_WAIT_CHILD_PROCESS_FINISHED = 11400108,
33     TIMEOUT_WAIT_CHILD_PROCESS_FINISHED = 11400109,
34     LOW_DISK_SPACE = 11400110,
35     NAPI_INTERFACE_ERROR = 11400111,
36     REPEAT_DUMPING = 11400112,
37     FAILED_CREATE_FILE = 11400113,
38 };
39 
40 #endif //ERROR_CODE_H
41