<!--
{
  "documentType" : "article",
  "framework" : "ExceptionHandling",
  "identifier" : "/documentation/ExceptionHandling/exception-global-string-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Exception Global String Constants"
}
-->

# Exception Global String Constants

Two of the following global string constants identify exceptions generated by the
framework for Objective-C runtime errors and system exceptions such as invalid memory
accesses. The other constant is used as a key to access the stack trace in the <doc://com.apple.documentation/documentation/Foundation/NSException/userInfo-swift.property>
dictionary of an <doc://com.apple.documentation/documentation/Foundation/NSException>
object, when requested.

## Topics

### Constants

[`let NSUncaughtSystemExceptionException: String`](/documentation/ExceptionHandling/NSUncaughtSystemExceptionException)

Identifies an uncaught system exception.

[`let NSUncaughtRuntimeErrorException: String`](/documentation/ExceptionHandling/NSUncaughtRuntimeErrorException)

Identifies an Objective-C runtime error.

[`let NSStackTraceKey: String`](/documentation/ExceptionHandling/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>.



---

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)