<!--
{
  "availability" : [
    "iOS: 14.0.0 - 27.2.0",
    "iPadOS: 14.0.0 - 27.2.0",
    "macCatalyst: 14.0.0 - 27.0.0",
    "macOS: 12.0.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXCrashDiagnostic/exceptionCode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXCrashDiagnostic(py)exceptionCode"
  },
  "title" : "exceptionCode"
}
-->

# exceptionCode

The encoded processor-specific information for the crash.

```
var exceptionCode: NSNumber? { get }
```

## Discussion

Processor-specific information is in the `usr/include/mach/exception_types.h` file in the SDK, or in one of its included files.

---

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)