# CrashReportHandler

> Engine API for CrashReporting Service.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.CrashReportHandler](/engine/6000.7/script-reference/unityengine/crashreporthandler.md)
* **Assembly:** UnityEngine.CrashReportingModule

```csharp
public class CrashReportHandler
```

## Static Properties

| Property                                                                                                                                | Description                                                                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [enableCaptureExceptions](/engine/6000.7/script-reference/unityengine/crashreporthandler/crashreporthandler/enablecaptureexceptions.md) | This Boolean field will cause CrashReportHandler to capture exceptions when set to true. By default enable capture exceptions is true.                                                                                                           |
| [logBufferSize](/engine/6000.7/script-reference/unityengine/crashreporthandler/crashreporthandler/logbuffersize.md)                     | The Diagnostics service will keep a buffer of up to the last X log messages (Debug.Log, etc) to send along with crash reports.  The default is 10 log messages, the max is 50. Set this to 0 to disable capture of logs with your crash reports. |

## Static Methods

| Method                                                                                                                  | Description                                                             |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [GetUserMetadata](/engine/6000.7/script-reference/unityengine/crashreporthandler/crashreporthandler/getusermetadata.md) | Get a custom crash report metadata field that has been set.             |
| [SetUserMetadata](/engine/6000.7/script-reference/unityengine/crashreporthandler/crashreporthandler/setusermetadata.md) | Set a custom metadata key-value pair to be included with crash reports. |
