Enumeration

Logging and Handling Constants

Use one or more of the following constants in the parameter of setExceptionHandlingMask: to specify the types of exceptions that the exception handler should monitor and whether it should handle or log them.

Declaration

enum : unsigned int {
    ...
};

Overview

When exception-handling domains are nested, NSLogTopLevelExceptionMask and NSHandleTopLevelExceptionMask deal 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

NSLogUncaughtExceptionMask

The exception handler logs uncaught exceptions.

NSHandleUncaughtExceptionMask

The exception handler handles uncaught exceptions by terminating the thread in which they occur.

NSLogUncaughtSystemExceptionMask

The exception handler logs uncaught system exceptions.

NSHandleUncaughtSystemExceptionMask

The exception handler handles uncaught system exceptions by converting them to NSException objects containing a stack trace.

NSLogUncaughtRuntimeErrorMask

The exception handler logs uncaught runtime errors.

NSHandleUncaughtRuntimeErrorMask

The exception handler handles uncaught runtime errors by converting them to NSException objects containing a stack trace.

NSLogTopLevelExceptionMask

The exception handler logs exceptions that would be caught by the top-level handler.

NSHandleTopLevelExceptionMask

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

NSLogOtherExceptionMask

The exception handler logs exceptions caught by handlers lower than the top-level handler.

NSHandleOtherExceptionMask

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