---
title: NSExtensionItemsAndErrorsKey
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsextensionitemsanderrorskey
---

# NSExtensionItemsAndErrorsKey

The extension items and errors key.

## Declaration

```swift
let NSExtensionItemsAndErrorsKey: String
```

## Discussion

Discussion This key appears in the userInfo dictionary of the NSError object that cancelRequest(withError:) returns. This key’s value is a dictionary of NSExtensionItem objects and associated NSError instances.

## See Also

### Handling requests

- [completeRequest(returningItems:completionHandler:)](foundation/nsextensioncontext/completerequest(returningitems:completionhandler:).md)
- [cancelRequest(withError:)](foundation/nsextensioncontext/cancelrequest(witherror:).md)
