Ble Error
Represents specific BLE failures, modeled after the iOS implementation's AccessoryError. This allows for more granular error handling and intelligent reconnection strategies.
Inheritors
Types
Wraps a generic BluetoothException. The reconnection strategy depends on the nature of the Bluetooth error.
Bluetooth is unavailable on the device. This is a non-recoverable error.
An error indicating a failure during the connection attempt. This may be recoverable, so a reconnect attempt is warranted.
An error indicating a disconnection initiated by the peripheral. This may be recoverable, so a reconnect attempt is warranted.
An error indicating a failure during the service discovery process. This may be recoverable, so a reconnect attempt is warranted.
A generic error for other exceptions that may occur.
An invalid attribute was used. This is a non-recoverable error.
The BLE manager was closed. This is a non-recoverable error.
A BLE operation failed. This may be recoverable.
The peripheral is not connected. This may be recoverable.
An error indicating that the peripheral was not found. This is a non-recoverable error and should not trigger a reconnect.
A value did not match what was expected. This may be recoverable.