---
title: exceptionHangingMask()
framework: Exception Handling
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 13.0+, macOS 10.0+]
path: exceptionhandling/nsexceptionhandler/exceptionhangingmask()
---

# exceptionHangingMask()

Returns a bit mask representing the types of exceptions that will halt execution for debugging.

## Declaration

```swift
func exceptionHangingMask() -> Int
```

## Return Value

Return Value A bit mask composed of one or more constants specifying the types of exceptions that will halt execution for debugging. See System Hang Constants for information about the constants.

## See Also

### Getting and setting exception masks

- [exceptionHandlingMask()](exceptionhandling/nsexceptionhandler/exceptionhandlingmask().md)
- [setExceptionHandlingMask(_:)](exceptionhandling/nsexceptionhandler/setexceptionhandlingmask(_:).md)
- [setExceptionHangingMask(_:)](exceptionhandling/nsexceptionhandler/setexceptionhangingmask(_:).md)
