---
title: StateError
framework: WorkoutKit
role: symbol
role_heading: Enumeration
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 18.0+, macOS 15.0+, watchOS 10.0+]
path: workoutkit/stateerror
---

# StateError

An error that occurs while previewing a workout composition.

## Declaration

```swift
enum StateError
```

## Topics

### Getting the error type

- [StateError.watchNotPaired](workoutkit/stateerror/watchnotpaired.md)
- [StateError.workoutApplicationNotInstalled](workoutkit/stateerror/workoutapplicationnotinstalled.md)

## Relationships

### Conforms To

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