<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WorkoutKit",
  "identifier" : "/documentation/WorkoutKit/StateError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit10StateErrorO"
  },
  "title" : "StateError"
}
-->

# StateError

An error that occurs while previewing a workout composition.

```
enum StateError
```

## Topics

### Getting the error type

[`case watchNotPaired`](/documentation/WorkoutKit/StateError/watchNotPaired)

The current device doesn’t have a paired Apple Watch.

[`case workoutApplicationNotInstalled`](/documentation/WorkoutKit/StateError/workoutApplicationNotInstalled)

The Workout app isn’t installed on this Apple Watch.

### Getting the error description

### Comparing state errors

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Error`](/documentation/Swift/Error)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)