BleConnectionException

class BleConnectionException(message: String? = null, cause: Throwable? = null) : BleServiceException

Exception thrown when a Bluetooth Low Energy (BLE) connection fails.

This exception represents errors that occur during the establishment, maintenance, or termination of a BLE connection with a device. Common causes include device being out of range, connection timeouts, or device disconnections.

Parameters

message

The detail message explaining the specific connection error.

cause

The underlying cause of this connection exception.

See also

Constructors

Link copied to clipboard
constructor(message: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?