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

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

var NSHangOnUncaughtExceptionMask: Int

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

var NSHangOnUncaughtSystemExceptionMask: Int

The exception handler suspends execution when it detects an uncaught system exception.

var NSHangOnUncaughtRuntimeErrorMask: Int

The exception handler suspends execution when it detects an uncaught runtime error.

var NSHangOnTopLevelExceptionMask: Int

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

var NSHangOnOtherExceptionMask: Int

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