<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/nserror-userinfo-dictionary-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSError userInfo Dictionary Keys"
}
-->

# NSError userInfo Dictionary Keys

Keys in the userInfo dictionary of an `NSError` object when certain NSURL methods return an error.

## Topics

### Constants

[`static let keysOfUnsetValuesKey: URLResourceKey`](/documentation/Foundation/URLResourceKey/keysOfUnsetValuesKey)

Key for the resource properties that have not been set after the [`setResourceValues(_:)`](/documentation/Foundation/NSURL/setResourceValues(_:)) method returns an error, returned as an array of `NSString` objects.



---

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)