GattRequestRejectedException

class GattRequestRejectedException : BluetoothException

Thrown when underlying BluetoothGatt method call returns false. This can occur under the following conditions:

  • Request isn't allowed (e.g. reading a non-readable characteristic)

  • Underlying service or client interface is missing or invalid (e.g. mService == null || mClientIf == 0)

  • Associated BluetoothDevice is unavailable

  • Device is busy (i.e. a previous request is still in-progress)

  • An Android internal failure occurred (i.e. an underlying RemoteException was thrown)

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

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