ScanException


public final class ScanException extends BluetoothException


Summary

Constants

static final int

Fails to start scan as app cannot be registered.

static final int

Fails to start scan due an internal error.

static final int

Fails to start scan as it is out of hardware resources.

static final int

Fails to start scan as application tries to scan too frequently.

static final int
UNSUPPORTED = 10203

Fails to start power optimized scan as this feature is not supported.

Public constructors

ScanException(int errorCode)

Public methods

int

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

Constants

APPLICATION_REGISTRATION_FAILED

public static final int APPLICATION_REGISTRATION_FAILED = 10201

Fails to start scan as app cannot be registered.

INTERNAL_ERROR

public static final int INTERNAL_ERROR = 10202

Fails to start scan due an internal error.

OUT_OF_HARDWARE_RESOURCES

public static final int OUT_OF_HARDWARE_RESOURCES = 10204

Fails to start scan as it is out of hardware resources.

SCANNING_TOO_FREQUENTLY

public static final int SCANNING_TOO_FREQUENTLY = 10205

Fails to start scan as application tries to scan too frequently.

UNSUPPORTED

public static final int UNSUPPORTED = 10203

Fails to start power optimized scan as this feature is not supported.

Public constructors

ScanException

Added in 1.0.0-alpha02
public ScanException(int errorCode)

Public methods

getErrorCode

public int getErrorCode()

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