Exceptions topic
Typed exception hierarchy for Bluetooth Classic operations.
All exceptions extend BluetoothException. Catch the base class for
generic error handling, or catch specific subclasses for targeted recovery.
Exceptions / Errors
- BtcAddressException Exceptions
- Thrown when an invalid Bluetooth MAC address is provided.
- BtcConnectionException Exceptions
- Thrown when a connection attempt fails.
- BtcDisabledException Exceptions
- Thrown when an operation requires Bluetooth to be enabled but it is off.
- BtcException Exceptions
- Base exception for all Bluetooth Classic operations.
- BtcPermissionException Exceptions
- Thrown when a required Bluetooth permission is denied.
- BtcTimeoutException Exceptions
- Thrown when an operation times out.
- BtcUnsupportedException Exceptions
- Thrown when a feature is not available on the current platform.
- BtcUuidException Exceptions
- Thrown when an invalid UUID is provided.
- BtcWriteException Exceptions
- Thrown when a write operation to a connected device fails.