---
title: SKTestError.Code
framework: StoreKit Test
role: symbol
role_heading: Enumeration
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/code
---

# SKTestError.Code

Error codes in the testing environment.

## Declaration

```swift
enum Code
```

## Topics

### Error Codes

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

### Initializers

- [init(rawValue:)](storekittest/sktesterror/code/init(rawvalue:).md)

## Relationships

### Conforms To

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