---
title: errorUserExitedWorkoutSession
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkerror/erroruserexitedworkoutsession
---

# errorUserExitedWorkoutSession

The user exited your application while a workout session was running.

## Declaration

```swift
static var errorUserExitedWorkoutSession: HKError.Code { get }
```

## Discussion

Discussion Workout sessions end when the app goes into the background.

## See Also

### Accessing errors

- [HKError.Code](healthkit/hkerror/code.md)
- [noError](healthkit/hkerror/noerror.md)
- [errorHealthDataUnavailable](healthkit/hkerror/errorhealthdataunavailable.md)
- [errorHealthDataRestricted](healthkit/hkerror/errorhealthdatarestricted.md)
- [errorInvalidArgument](healthkit/hkerror/errorinvalidargument.md)
- [errorAuthorizationDenied](healthkit/hkerror/errorauthorizationdenied.md)
- [errorAuthorizationNotDetermined](healthkit/hkerror/errorauthorizationnotdetermined.md)
- [errorRequiredAuthorizationDenied](healthkit/hkerror/errorrequiredauthorizationdenied.md)
- [errorDatabaseInaccessible](healthkit/hkerror/errordatabaseinaccessible.md)
- [errorUserCanceled](healthkit/hkerror/errorusercanceled.md)
- [errorAnotherWorkoutSessionStarted](healthkit/hkerror/erroranotherworkoutsessionstarted.md)
- [errorNoData](healthkit/hkerror/errornodata.md)
