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

# reason

A string containing a “human-readable” reason for the receiver.

## Declaration

```swift
var reason: String? { get }
```

## See Also

### Related Documentation

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

### Querying an NSException Object

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