<!--
{
  "availability" : [
    "iOS: 17.0.0 - 27.0.0",
    "iPadOS: 17.0.0 - 27.0.0",
    "macCatalyst: 17.0.0 - 27.0.0",
    "macOS: 14.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXCrashDiagnosticObjectiveCExceptionReason"
  },
  "title" : "MXCrashDiagnosticObjectiveCExceptionReason"
}
-->

# MXCrashDiagnosticObjectiveCExceptionReason

An object that represents the exception reason for an uncaught ObjC exception.

```
class MXCrashDiagnosticObjectiveCExceptionReason
```

## Overview

The crash report for an uncaught Objective-C <doc://com.apple.documentation/documentation/Foundation/NSException> can contain detailed information about the type, name and description of the exception object. Use the properties and methods on [`MXCrashDiagnosticObjectiveCExceptionReason`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason) to access this information.

## Topics

### Generating a report

[`dictionaryRepresentation()`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/dictionaryRepresentation())

[`jsonRepresentation()`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/jsonRepresentation())

Returns the contents of the exception reason in JSON format.

### Reading the data

[`arguments`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/arguments)

[`className`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/className)

[`composedMessage`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/composedMessage)

[`exceptionName`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/exceptionName)

[`exceptionType`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/exceptionType)

[`formatString`](/documentation/MetricKit/MXCrashDiagnosticObjectiveCExceptionReason/formatString)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)