---
title: Logging and Handling Constants
framework: Exception Handling
role: collectionGroup
role_heading: API Collection
path: exceptionhandling/logging-and-handling-constants
---

# 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.

## Overview

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](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)
- [NSHandleTopLevelExceptionMask](exceptionhandling/nshandletoplevelexceptionmask.md)
- [NSLogOtherExceptionMask](exceptionhandling/nslogotherexceptionmask.md)
- [NSHandleOtherExceptionMask](exceptionhandling/nshandleotherexceptionmask.md)

## See Also

### Constants

- [System Hang Constants](exceptionhandling/system-hang-constants.md)
- [Exception Global String Constants](exceptionhandling/exception-global-string-constants.md)
