---
title: NSExceptionHandlerDelegate
framework: Exception Handling
role: collectionGroup
path: exceptionhandling/nsexceptionhandlerdelegate
---

# NSExceptionHandlerDelegate

The NSExceptionHandlerDelegate informal protocol describes methods that NSExceptionHandler objects call on their delegates when exceptions occur. An NSExceptionHandler object does not need to have a delegate. When one does, these delegate methods are asked to approve exception handling and logging for each monitored NSExceptionHandler object.

## Topics

### Logging and handling exceptions

- [exceptionHandler(_:shouldHandle:mask:)](objectivec/nsobject-swift.class/exceptionhandler(_:shouldhandle:mask:).md)
- [exceptionHandler(_:shouldLogException:mask:)](objectivec/nsobject-swift.class/exceptionhandler(_:shouldlogexception:mask:).md)
