---
title: PlaygroundBluetoothCentralManager.ConnectionError.invalidState
framework: Playground Bluetooth
role: symbol
role_heading: Enumeration Case
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothcentralmanager/connectionerror/invalidstate
---

# PlaygroundBluetoothCentralManager.ConnectionError.invalidState

The error that occurs when the central manager is in a state that can’t make connections.

## Declaration

```swift
case invalidState
```

## Discussion

Discussion For example, the central manager is in an invalid state for connections when it’s powered off.

## See Also

### Handling Errors

- [PlaygroundBluetoothCentralManager.ConnectionError.connectionFailed](playgroundbluetooth/playgroundbluetoothcentralmanager/connectionerror/connectionfailed.md)
- [PlaygroundBluetoothCentralManager.ConnectionError.connectionLost](playgroundbluetooth/playgroundbluetoothcentralmanager/connectionerror/connectionlost.md)
- [PlaygroundBluetoothCentralManager.ConnectionError.excessiveConnections](playgroundbluetooth/playgroundbluetoothcentralmanager/connectionerror/excessiveconnections.md)
- [PlaygroundBluetoothCentralManager.ConnectionError.timeoutExpired](playgroundbluetooth/playgroundbluetoothcentralmanager/connectionerror/timeoutexpired.md)
