---
title: ErrorUserInfoKey
framework: foundation
role: symbol
role_heading: Structure
path: foundation/erroruserinfokey
---

# ErrorUserInfoKey

These keys may exist in the user info dictionary.

## Declaration

```swift
struct ErrorUserInfoKey
```

## Topics

### Type Properties

- [NSURLErrorKey](foundation/erroruserinfokey/nsurlerrorkey.md)
- [filePathErrorKey](foundation/erroruserinfokey/filepatherrorkey.md)
- [helpAnchorErrorKey](foundation/erroruserinfokey/helpanchorerrorkey.md)
- [localizedDescriptionKey](foundation/erroruserinfokey/localizeddescriptionkey.md)
- [localizedFailureReasonErrorKey](foundation/erroruserinfokey/localizedfailurereasonerrorkey.md)
- [localizedRecoveryOptionsErrorKey](foundation/erroruserinfokey/localizedrecoveryoptionserrorkey.md)
- [localizedRecoverySuggestionErrorKey](foundation/erroruserinfokey/localizedrecoverysuggestionerrorkey.md)
- [recoveryAttempterErrorKey](foundation/erroruserinfokey/recoveryattemptererrorkey.md)
- [stringEncodingErrorKey](foundation/erroruserinfokey/stringencodingerrorkey.md)
- [underlyingErrorKey](foundation/erroruserinfokey/underlyingerrorkey.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Providing Error User Info

- [setUserInfoValueProvider(forDomain:provider:)](foundation/nserror/setuserinfovalueprovider(fordomain:provider:).md)
- [userInfoValueProvider(forDomain:)](foundation/nserror/userinfovalueprovider(fordomain:).md)
- [NSError.UserInfoKey](foundation/nserror/userinfokey.md)
