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

# delegate()

Returns the delegate of the NSExceptionHandler object.

## Declaration

```swift
func delegate() -> Any!
```

## See Also

### Getting and setting the delegate

- [setDelegate(_:)](exceptionhandling/nsexceptionhandler/setdelegate(_:).md)
