<!--
{
  "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)

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)