BluetoothException


open class BluetoothException : CancellationException


Exception for general Bluetooth operations

Summary

Constants

const Int

Error code indicating that the API call was initiated by neither the system nor the active user.

const Int

Error code indicating that Bluetooth is not enabled.

const Int

Error code indicating that the Bluetooth Device specified is not bonded.

const Int

Error code indicating that the Bluetooth Device specified is not connected, but is bonded.

const Int

Indicates that an unknown error has occurred.

const Int

Indicates that the feature status is not configured yet.

const Int

Indicates that the feature is not supported.

Public constructors

BluetoothException(errorCode: Int, message: String?, cause: Throwable?)

Public properties

open Int

the error code for indicating the reason why the exception is thrown

Inherited properties

From kotlin.Throwable

Constants

BLUETOOTH_NOT_ALLOWED

const val BLUETOOTH_NOT_ALLOWEDInt

Error code indicating that the API call was initiated by neither the system nor the active user.

BLUETOOTH_NOT_ENABLED

const val BLUETOOTH_NOT_ENABLEDInt

Error code indicating that Bluetooth is not enabled.

DEVICE_NOT_BONDED

const val DEVICE_NOT_BONDEDInt

Error code indicating that the Bluetooth Device specified is not bonded.

DEVICE_NOT_CONNECTED

const val DEVICE_NOT_CONNECTED = 4: Int

Error code indicating that the Bluetooth Device specified is not connected, but is bonded.

ERROR_UNKNOWN

const val ERROR_UNKNOWNInt

Indicates that an unknown error has occurred.

FEATURE_NOT_CONFIGURED

const val FEATURE_NOT_CONFIGUREDInt

Indicates that the feature status is not configured yet.

FEATURE_NOT_SUPPORTED

const val FEATURE_NOT_SUPPORTEDInt

Indicates that the feature is not supported.

Public constructors

BluetoothException

Added in 1.0.0-alpha02
BluetoothException(
    errorCode: Int,
    message: String? = null,
    cause: Throwable? = null
)

Public properties

errorCode

Added in 1.0.0-alpha02
open val errorCodeInt

the error code for indicating the reason why the exception is thrown