AdvertiseException


public final class AdvertiseException extends BluetoothException


Summary

Constants

static final int

Advertise failed to start because the data is too large.

static final int

Advertise failed to start because of an internal error.

static final int

Advertise failed to start because of too many advertisers.

static final int
UNSUPPORTED = 10104

Advertise failed to start because the advertise feature is not supported.

Public constructors

AdvertiseException(int errorCode)

Public methods

int

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

Constants

DATA_TOO_LARGE

public static final int DATA_TOO_LARGE = 10101

Advertise failed to start because the data is too large.

INTERNAL_ERROR

public static final int INTERNAL_ERROR = 10103

Advertise failed to start because of an internal error.

TOO_MANY_ADVERTISERS

public static final int TOO_MANY_ADVERTISERS = 10102

Advertise failed to start because of too many advertisers.

UNSUPPORTED

public static final int UNSUPPORTED = 10104

Advertise failed to start because the advertise feature is not supported.

Public constructors

AdvertiseException

Added in 1.0.0-alpha02
public AdvertiseException(int errorCode)

Public methods

getErrorCode

public int getErrorCode()

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