---
title: failureError
framework: storekittest
role: symbol
role_heading: Instance Property
path: storekittest/sktestsession/failureerror
---

# failureError

The error code that transactions return when you enable failing transactions.

## Declaration

```swift
var failureError: SKError.Code { get set }
```

## Discussion

Discussion You can force an error by setting failTransactionsEnabled to true and setting failureError value to one of these supported error codes: SKError.Code.unknown, SKError.Code.invalidOfferIdentifier, SKError.Code.invalidSignature, SKError.Code.missingOfferParams, SKError.Code.invalidOfferPrice. Use these settings to test your how your app responds to failed transactions.

## See Also

### Forcing failed transactions

- [failTransactionsEnabled](storekittest/sktestsession/failtransactionsenabled.md)
