---
title: SKTestError
framework: StoreKit Test
role: symbol
role_heading: Structure
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+]
path: storekittest/sktesterror
---

# SKTestError

Information about an error that the testing environment returns.

## Declaration

```swift
struct SKTestError
```

## Topics

### Error Domain

- [errorDomain](storekittest/sktesterror/errordomain.md)

### Error Codes

- [fileNotFound](storekittest/sktesterror/filenotfound.md)
- [invalidAction](storekittest/sktesterror/invalidaction.md)
- [invalidProductIdentifier](storekittest/sktesterror/invalidproductidentifier.md)
- [invalidProductType](storekittest/sktesterror/invalidproducttype.md)
- [invalidURL](storekittest/sktesterror/invalidurl.md)
- [noSubscriptionFound](storekittest/sktesterror/nosubscriptionfound.md)
- [noTransactionFound](storekittest/sktesterror/notransactionfound.md)
- [serviceUnavailable](storekittest/sktesterror/serviceunavailable.md)
- [SKTestError.Code](storekittest/sktesterror/code.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### StoreKit transaction testing errors

- [SKTestErrorDomain](storekittest/sktesterrordomain.md)
