---
title: "Product.CollectionTaskState.failure(_:)"
framework: storekit
role: symbol
role_heading: Case
path: "storekit/product/collectiontaskstate/failure(_:)"
---

# Product.CollectionTaskState.failure(_:)

The task failed with an error.

## Declaration

```swift
case failure(any Error)
```

## See Also

### Collection task states

- [Product.CollectionTaskState.loading](storekit/product/collectiontaskstate/loading.md)
- [Product.CollectionTaskState.success(_:unavailable:)](storekit/product/collectiontaskstate/success(_:unavailable:).md)
