<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CrashReportExtension",
  "identifier" : "/documentation/CrashReportExtension/CrashReason",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CrashReportExtension"
    ],
    "preciseIdentifier" : "s:20CrashReportExtension0A6ReasonV"
  },
  "title" : "CrashReason"
}
-->

# CrashReason

Context information about the crash being reported

```
struct CrashReason
```

## Topics

### Creating a crash reason

[`init(exception: Int32, codes: [UInt64])`](/documentation/CrashReportExtension/CrashReason/init(exception:codes:))

Creates a crash reason instance with the given parameters.

### Inpecting crash reason properties

[`let codes: [UInt64]`](/documentation/CrashReportExtension/CrashReason/codes)

An array of exception-specific codes providing additional details.

[`let exception: Int32`](/documentation/CrashReportExtension/CrashReason/exception)

The Mach exception type.



---

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)