---
title: System Hang Constants
framework: Exception Handling
role: collectionGroup
role_heading: API Collection
path: exceptionhandling/system-hang-constants
---

# System Hang Constants

Use one or more of the following constants in the parameter of setExceptionHangingMask(_:) to specify the types of exceptions that cause the exception to halt execution so a debugger can be attached.

## Overview

Overview When exception-handling domains are nested, NSHangOnTopLevelExceptionMask deals with exceptions that would make it to the top two levels of exception handlers. In the main thread of a Cocoa application, the top-level handler is the global NSApplication instance.

## Topics

### Constants

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

## See Also

### Constants

- [Logging and Handling Constants](exceptionhandling/logging-and-handling-constants.md)
- [Exception Global String Constants](exceptionhandling/exception-global-string-constants.md)
