<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSException/reason-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSException(py)reason"
  },
  "title" : "reason"
}
-->

# reason

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

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

## See Also

[`init(name:reason:userInfo:)`](/documentation/Foundation/NSException/init(name:reason:userInfo:))

Initializes and returns a newly allocated exception object.

[`exceptionWithName:reason:userInfo:`](/documentation/Foundation/NSException/exceptionWithName:reason:userInfo:)

Creates and returns an exception object .



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)