---
title: NSStackTraceKey
framework: Exception Handling
role: symbol
role_heading: Global Variable
platforms: [Mac Catalyst 13.0+, macOS 10.0+]
path: exceptionhandling/nsstacktracekey
---

# NSStackTraceKey

The key for fetching the stack trace (an NSString object) in the userInfo dictionary of the NSException object passed into one of the delegate methods described in NSExceptionHandlerDelegate.

## Declaration

```swift
let NSStackTraceKey: String
```

## See Also

### Constants

- [NSUncaughtRuntimeErrorException](exceptionhandling/nsuncaughtruntimeerrorexception.md)
- [NSUncaughtSystemExceptionException](exceptionhandling/nsuncaughtsystemexceptionexception.md)
