---
title: name
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsexception/name-swift.property
---

# name

A string used to uniquely identify the receiver.

## Declaration

```swift
var name: NSExceptionName { get }
```

## See Also

### Related Documentation

- [init(name:reason:userInfo:)](foundation/nsexception/init(name:reason:userinfo:).md)

### Querying an NSException Object

- [reason](foundation/nsexception/reason-swift.property.md)
- [userInfo](foundation/nsexception/userinfo-swift.property.md)
