1e41f4b71Sopenharmony_ci# Crash Event Overview
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciHiAppEvent provides APIs for subscribing to crash events.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci- [Subscribing to Crash Events (ArkTS)](hiappevent-watcher-crash-events-arkts.md)
6e41f4b71Sopenharmony_ci- [Subscribing to Crash Events (C/C++)](hiappevent-watcher-crash-events-ndk.md)
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciThe **params** parameter in the event information is described as follows.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**params**
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
13e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
14e41f4b71Sopenharmony_ci| time     | number | Event triggering time, in ms.|
15e41f4b71Sopenharmony_ci| crash_type | string | Crash type, which can be JsError or NativeCrash.|
16e41f4b71Sopenharmony_ci| foreground | boolean | Whether the application is running in the foreground.|
17e41f4b71Sopenharmony_ci| bundle_version | string | Application version.|
18e41f4b71Sopenharmony_ci| bundle_name | string | Application name.|
19e41f4b71Sopenharmony_ci| pid | number | Process ID of the application.|
20e41f4b71Sopenharmony_ci| uid | number | User ID of the application.|
21e41f4b71Sopenharmony_ci| uuid | string | Error ID.|
22e41f4b71Sopenharmony_ci| exception | object | Exception information. For details, see **exception**. <br>For details about the NativeCrash events, see **exception (NativeCrash)**.|
23e41f4b71Sopenharmony_ci| hilog | string[] | Log information.|
24e41f4b71Sopenharmony_ci| threads | object[] | Full thread call stack. For details, see **thread**. This field applies only to NativeCrash events.|
25e41f4b71Sopenharmony_ci| external_log<sup>12+</sup> | string[] | Path of the error log file. If the directory files exceed the threshold (for details, see **log_over_limit**), new log files may fail to be written. Therefore, delete the log files immediately after they are processed.|
26e41f4b71Sopenharmony_ci| log_over_limit<sup>12+</sup> | boolean | Whether the size of generated log files and existing log files exceeds the upper limit (5 MB). The value **true** indicates that the upper limit is exceeded and logs fail to be written. The value **false** indicates that the upper limit is not exceeded.|
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci**exception**
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
31e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
32e41f4b71Sopenharmony_ci| name | string | Exception type.|
33e41f4b71Sopenharmony_ci| message | string | Exception cause.|
34e41f4b71Sopenharmony_ci| stack | string | Exception call stack.|
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci**exception (NativeCrash)**
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
39e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
40e41f4b71Sopenharmony_ci| message | string | Exception cause.|
41e41f4b71Sopenharmony_ci| signal | object | Signal information. For details, see **signal**.|
42e41f4b71Sopenharmony_ci| thread_name | string | Thread name.|
43e41f4b71Sopenharmony_ci| tid | number | Thread ID.|
44e41f4b71Sopenharmony_ci| frames | object[] | Thread call stack. For details, see **frame**.|
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_ci**signal**
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
49e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
50e41f4b71Sopenharmony_ci| signo | number | Signal value (**si_signo** in **siginfo_t**)|
51e41f4b71Sopenharmony_ci| code | number | Level-2 classification of signal values (**si_code** in **siginfo_t**)|
52e41f4b71Sopenharmony_ci| address | string | Signal error address (**si_address** attribute in **siginfo_t**)|
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci[Signal Value & Level-2 Classification of Signal Values](cppcrash-guidelines.md)
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ci**thread**
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
59e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
60e41f4b71Sopenharmony_ci| thread_name | string | Thread name.|
61e41f4b71Sopenharmony_ci| tid | number | Thread ID.|
62e41f4b71Sopenharmony_ci| frames | object[] | Thread call stack. For details, see **frame**.|
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci**frame**
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci| Name   | Type  | Description                      |
67e41f4b71Sopenharmony_ci| ------- | ------ | ------------------------- |
68e41f4b71Sopenharmony_ci| symbol | string | Function name.|
69e41f4b71Sopenharmony_ci| file | string | File name.|
70e41f4b71Sopenharmony_ci| buildId | string | Unique file ID.|
71e41f4b71Sopenharmony_ci| pc | string | PC register address.|
72e41f4b71Sopenharmony_ci| offset | number | Function offset.|
73