<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ExceptionHandling",
  "identifier" : "/documentation/ExceptionHandling/NSStackTraceKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Exception Handling"
    ],
    "preciseIdentifier" : "c:@NSStackTraceKey"
  },
  "title" : "NSStackTraceKey"
}
-->

# NSStackTraceKey

The key for fetching the stack trace (an <doc://com.apple.documentation/documentation/Foundation/NSString>
object) in the <doc://com.apple.documentation/documentation/Foundation/NSException/userInfo-swift.property>
dictionary of the <doc://com.apple.documentation/documentation/Foundation/NSException>
object passed into one of the delegate methods described in <doc://com.apple.documentation/documentation/ExceptionHandling/nsexceptionhandlerdelegate>.

```
let NSStackTraceKey: String
```

---

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)