---
title: CBError
framework: corebluetooth
role: symbol
role_heading: Structure
path: corebluetooth/cberror-swift.struct
---

# CBError

An error that Core Bluetooth returns during Bluetooth transactions.

## Declaration

```swift
struct CBError
```

## Topics

### Error Codes

- [unknown](corebluetooth/cberror-swift.struct/unknown.md)
- [invalidParameters](corebluetooth/cberror-swift.struct/invalidparameters.md)
- [invalidHandle](corebluetooth/cberror-swift.struct/invalidhandle.md)
- [notConnected](corebluetooth/cberror-swift.struct/notconnected.md)
- [outOfSpace](corebluetooth/cberror-swift.struct/outofspace.md)
- [operationCancelled](corebluetooth/cberror-swift.struct/operationcancelled.md)
- [connectionTimeout](corebluetooth/cberror-swift.struct/connectiontimeout.md)
- [peripheralDisconnected](corebluetooth/cberror-swift.struct/peripheraldisconnected.md)
- [uuidNotAllowed](corebluetooth/cberror-swift.struct/uuidnotallowed.md)
- [alreadyAdvertising](corebluetooth/cberror-swift.struct/alreadyadvertising.md)
- [connectionFailed](corebluetooth/cberror-swift.struct/connectionfailed.md)
- [connectionLimitReached](corebluetooth/cberror-swift.struct/connectionlimitreached.md)
- [operationNotSupported](corebluetooth/cberror-swift.struct/operationnotsupported.md)
- [unknownDevice](corebluetooth/cberror-swift.struct/unknowndevice.md)
- [unkownDevice](corebluetooth/cberror-swift.struct/unkowndevice.md)

### Type Properties

- [encryptionTimedOut](corebluetooth/cberror-swift.struct/encryptiontimedout.md)
- [leGattExceededBackgroundNotificationLimit](corebluetooth/cberror-swift.struct/legattexceededbackgroundnotificationlimit.md)
- [leGattNearBackgroundNotificationLimit](corebluetooth/cberror-swift.struct/legattnearbackgroundnotificationlimit.md)
- [peerRemovedPairingInformation](corebluetooth/cberror-swift.struct/peerremovedpairinginformation.md)
- [tooManyLEPairedDevices](corebluetooth/cberror-swift.struct/toomanylepaireddevices.md)
- [channelSoundingConfigurationFailed](corebluetooth/cberror-swift.struct/channelsoundingconfigurationfailed.md)
- [channelSoundingProcedureFailed](corebluetooth/cberror-swift.struct/channelsoundingprocedurefailed.md)
- [errorDomain](corebluetooth/cberror-swift.struct/errordomain.md)

### Enumerations

- [CBError.Code](corebluetooth/cberror-swift.struct/code.md)

## Relationships

### Conforms To

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

## See Also

### Errors

- [CBErrorDomain](corebluetooth/cberrordomain.md)
- [CBError.Code](corebluetooth/cberror-swift.struct/code.md)
- [CBATTError](corebluetooth/cbatterror-swift.struct.md)
- [CBATTErrorDomain](corebluetooth/cbatterrordomain.md)
- [CBATTError.Code](corebluetooth/cbatterror-swift.struct/code.md)
- [CBATTError](corebluetooth/cbatterror-swift.struct.md)
