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

# NSHangOnUncaughtExceptionMask

The exception handler suspends execution when it detects an uncaught exception (other than a system exception or runtime error).

## Declaration

```swift
var NSHangOnUncaughtExceptionMask: Int { get }
```

## See Also

### Constants

- [NSHangOnUncaughtSystemExceptionMask](exceptionhandling/nshangonuncaughtsystemexceptionmask.md)
- [NSHangOnUncaughtRuntimeErrorMask](exceptionhandling/nshangonuncaughtruntimeerrormask.md)
- [NSHangOnTopLevelExceptionMask](exceptionhandling/nshangontoplevelexceptionmask.md)
- [NSHangOnOtherExceptionMask](exceptionhandling/nshangonotherexceptionmask.md)
