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

# NSHandleTopLevelExceptionMask

The exception handler handles exceptions caught by the top-level handler by converting them to NSException objects containing a stack trace.

## Declaration

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

## See Also

### Constants

- [NSLogUncaughtExceptionMask](exceptionhandling/nsloguncaughtexceptionmask.md)
- [NSHandleUncaughtExceptionMask](exceptionhandling/nshandleuncaughtexceptionmask.md)
- [NSLogUncaughtSystemExceptionMask](exceptionhandling/nsloguncaughtsystemexceptionmask.md)
- [NSHandleUncaughtSystemExceptionMask](exceptionhandling/nshandleuncaughtsystemexceptionmask.md)
- [NSLogUncaughtRuntimeErrorMask](exceptionhandling/nsloguncaughtruntimeerrormask.md)
- [NSHandleUncaughtRuntimeErrorMask](exceptionhandling/nshandleuncaughtruntimeerrormask.md)
- [NSLogTopLevelExceptionMask](exceptionhandling/nslogtoplevelexceptionmask.md)
- [NSLogOtherExceptionMask](exceptionhandling/nslogotherexceptionmask.md)
- [NSHandleOtherExceptionMask](exceptionhandling/nshandleotherexceptionmask.md)
