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

# NSHangOnTopLevelExceptionMask

The exception handler suspends execution when it detects an exception that would be handled by the top-level handler.

## Declaration

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

## See Also

### Constants

- [NSHangOnUncaughtExceptionMask](exceptionhandling/nshangonuncaughtexceptionmask.md)
- [NSHangOnUncaughtSystemExceptionMask](exceptionhandling/nshangonuncaughtsystemexceptionmask.md)
- [NSHangOnUncaughtRuntimeErrorMask](exceptionhandling/nshangonuncaughtruntimeerrormask.md)
- [NSHangOnOtherExceptionMask](exceptionhandling/nshangonotherexceptionmask.md)
